pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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>JavaWeb27</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>JavaWeb27 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.7</maven.compiler.source>
  15. <maven.compiler.target>1.7</maven.compiler.target>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. <version>4.11</version>
  22. <scope>test</scope>
  23. </dependency>
  24. <!-- https://mvnrepository.com/artifact/javax/javaee-api -->
  25. <dependency>
  26. <groupId>javax</groupId>
  27. <artifactId>javaee-api</artifactId>
  28. <version>7.0</version>
  29. <scope>provided</scope>
  30. </dependency>
  31. <!--jstl标签库-->
  32. <!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/javax.servlet.jsp.jstl-api -->
  33. <dependency>
  34. <groupId>javax.servlet.jsp.jstl</groupId>
  35. <artifactId>javax.servlet.jsp.jstl-api</artifactId>
  36. <version>1.2.1</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <!-- standard - jstl标签库的依赖包-->
  40. <!-- https://mvnrepository.com/artifact/org.apache.taglibs/taglibs-standard-impl -->
  41. <dependency>
  42. <groupId>org.apache.taglibs</groupId>
  43. <artifactId>taglibs-standard-impl</artifactId>
  44. <version>1.2.5</version>
  45. <scope>runtime</scope>
  46. </dependency>
  47. <!-- 这是文件上传和瞎下载的maven依赖-->
  48. <!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
  49. <dependency>
  50. <groupId>commons-io</groupId>
  51. <artifactId>commons-io</artifactId>
  52. <version>2.6</version>
  53. </dependency>
  54. <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
  55. <dependency>
  56. <groupId>commons-fileupload</groupId>
  57. <artifactId>commons-fileupload</artifactId>
  58. <version>1.4</version>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <finalName>JavaWeb27</finalName>
  63. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  64. <plugins>
  65. <plugin>
  66. <artifactId>maven-clean-plugin</artifactId>
  67. <version>3.1.0</version>
  68. </plugin>
  69. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  70. <plugin>
  71. <artifactId>maven-resources-plugin</artifactId>
  72. <version>3.0.2</version>
  73. </plugin>
  74. <plugin>
  75. <artifactId>maven-compiler-plugin</artifactId>
  76. <version>3.8.0</version>
  77. </plugin>
  78. <plugin>
  79. <artifactId>maven-surefire-plugin</artifactId>
  80. <version>2.22.1</version>
  81. </plugin>
  82. <plugin>
  83. <artifactId>maven-war-plugin</artifactId>
  84. <version>3.2.2</version>
  85. </plugin>
  86. <plugin>
  87. <artifactId>maven-install-plugin</artifactId>
  88. <version>2.5.2</version>
  89. </plugin>
  90. <plugin>
  91. <artifactId>maven-deploy-plugin</artifactId>
  92. <version>2.8.2</version>
  93. </plugin>
  94. </plugins>
  95. </pluginManagement>
  96. </build>
  97. </project>