pom.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. </dependencies>
  32. <build>
  33. <finalName>JavaWeb27</finalName>
  34. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  35. <plugins>
  36. <plugin>
  37. <artifactId>maven-clean-plugin</artifactId>
  38. <version>3.1.0</version>
  39. </plugin>
  40. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  41. <plugin>
  42. <artifactId>maven-resources-plugin</artifactId>
  43. <version>3.0.2</version>
  44. </plugin>
  45. <plugin>
  46. <artifactId>maven-compiler-plugin</artifactId>
  47. <version>3.8.0</version>
  48. </plugin>
  49. <plugin>
  50. <artifactId>maven-surefire-plugin</artifactId>
  51. <version>2.22.1</version>
  52. </plugin>
  53. <plugin>
  54. <artifactId>maven-war-plugin</artifactId>
  55. <version>3.2.2</version>
  56. </plugin>
  57. <plugin>
  58. <artifactId>maven-install-plugin</artifactId>
  59. <version>2.5.2</version>
  60. </plugin>
  61. <plugin>
  62. <artifactId>maven-deploy-plugin</artifactId>
  63. <version>2.8.2</version>
  64. </plugin>
  65. </plugins>
  66. </pluginManagement>
  67. </build>
  68. </project>