pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. <dependency>
  36. <groupId>com.fasterxml.jackson.core</groupId>
  37. <artifactId>jackson-annotations</artifactId>
  38. <version>2.11.3</version>
  39. </dependency>
  40. <!-- serlet-->
  41. <!-- https://mvnrepository.com/artifact/javax/javaee-api -->
  42. <dependency>
  43. <groupId>javax</groupId>
  44. <artifactId>javaee-api</artifactId>
  45. <version>7.0</version>
  46. <scope>provided</scope>
  47. </dependency>
  48. <!-- 文件上传
  49. -->
  50. <dependency>
  51. <groupId>commons-fileupload</groupId>
  52. <artifactId>commons-fileupload</artifactId>
  53. <version>1.3.3</version>
  54. </dependency>
  55. <!-- json格式的依赖-->
  56. <dependency>
  57. <groupId>com.fasterxml.jackson.core</groupId>
  58. <artifactId>jackson-core</artifactId>
  59. <version>2.9.8</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.fasterxml.jackson.core</groupId>
  63. <artifactId>jackson-databind</artifactId>
  64. <version>2.9.8</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.fasterxml.jackson.core</groupId>
  68. <artifactId>jackson-annotations</artifactId>
  69. <version>2.9.8</version>
  70. </dependency>
  71. </dependencies>
  72. <!-- spring-bom-->
  73. <dependencyManagement>
  74. <dependencies>
  75. <dependency>
  76. <groupId>org.springframework</groupId>
  77. <artifactId>spring-framework-bom</artifactId>
  78. <version>4.3.27.RELEASE</version>
  79. <scope>import</scope>
  80. <type>pom</type>
  81. </dependency>
  82. </dependencies>
  83. </dependencyManagement>
  84. <build>
  85. <finalName>springmvc</finalName>
  86. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  87. <plugins>
  88. <plugin>
  89. <artifactId>maven-clean-plugin</artifactId>
  90. <version>3.1.0</version>
  91. </plugin>
  92. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  93. <plugin>
  94. <artifactId>maven-resources-plugin</artifactId>
  95. <version>3.0.2</version>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-compiler-plugin</artifactId>
  99. <version>3.8.0</version>
  100. </plugin>
  101. <plugin>
  102. <artifactId>maven-surefire-plugin</artifactId>
  103. <version>2.22.1</version>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-war-plugin</artifactId>
  107. <version>3.2.2</version>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-install-plugin</artifactId>
  111. <version>2.5.2</version>
  112. </plugin>
  113. <plugin>
  114. <artifactId>maven-deploy-plugin</artifactId>
  115. <version>2.8.2</version>
  116. </plugin>
  117. </plugins>
  118. </pluginManagement>
  119. </build>
  120. </project>