pom.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.sf</groupId>
  6. <artifactId>springmvc</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>springmvc Maven Webapp</name>
  10. <!-- FIXME change it to the project's website -->
  11. <url>http://www.example.com</url>
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <maven.compiler.source>1.8</maven.compiler.source>
  15. <maven.compiler.target>1.8</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <version>4.12</version>
  22. <scope>test</scope>
  23. </dependency>
  24. <!-- springmvc 依赖-->
  25. <dependency>
  26. <groupId>org.springframework</groupId>
  27. <artifactId>spring-web</artifactId>
  28. <version>4.3.27.RELEASE</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-webmvc</artifactId>
  33. <version>4.3.27.RELEASE</version>
  34. </dependency>
  35. </dependencies>
  36. <!-- spring-bom-->
  37. <dependencyManagement>
  38. <dependencies>
  39. <dependency>
  40. <groupId>org.springframework</groupId>
  41. <artifactId>spring-framework-bom</artifactId>
  42. <version>4.3.27.RELEASE</version>
  43. <scope>import</scope>
  44. <type>pom</type>
  45. </dependency>
  46. </dependencies>
  47. </dependencyManagement>
  48. <build>
  49. <finalName>springmvc</finalName>
  50. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  51. <plugins>
  52. <plugin>
  53. <artifactId>maven-clean-plugin</artifactId>
  54. <version>3.1.0</version>
  55. </plugin>
  56. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  57. <plugin>
  58. <artifactId>maven-resources-plugin</artifactId>
  59. <version>3.0.2</version>
  60. </plugin>
  61. <plugin>
  62. <artifactId>maven-compiler-plugin</artifactId>
  63. <version>3.8.0</version>
  64. </plugin>
  65. <plugin>
  66. <artifactId>maven-surefire-plugin</artifactId>
  67. <version>2.22.1</version>
  68. </plugin>
  69. <plugin>
  70. <artifactId>maven-war-plugin</artifactId>
  71. <version>3.2.2</version>
  72. </plugin>
  73. <plugin>
  74. <artifactId>maven-install-plugin</artifactId>
  75. <version>2.5.2</version>
  76. </plugin>
  77. <plugin>
  78. <artifactId>maven-deploy-plugin</artifactId>
  79. <version>2.8.2</version>
  80. </plugin>
  81. </plugins>
  82. </pluginManagement>
  83. </build>
  84. </project>