pom.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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>maven-jetty-web</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>maven-jetty-web 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.11</version>
  22. <scope>test</scope>
  23. </dependency>
  24. </dependencies>
  25. <build>
  26. <finalName>maven-jetty-web</finalName>
  27. <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
  28. <plugins>
  29. <!-- jetty插件-->
  30. <plugin>
  31. <groupId>org.eclipse.jetty</groupId>
  32. <artifactId>jetty-maven-plugin</artifactId>
  33. <version>9.2.2.v20140723</version>
  34. </plugin>
  35. <plugin>
  36. <artifactId>maven-clean-plugin</artifactId>
  37. <version>3.1.0</version>
  38. </plugin>
  39. <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
  40. <plugin>
  41. <artifactId>maven-resources-plugin</artifactId>
  42. <version>3.0.2</version>
  43. </plugin>
  44. <plugin>
  45. <artifactId>maven-compiler-plugin</artifactId>
  46. <version>3.8.0</version>
  47. </plugin>
  48. <plugin>
  49. <artifactId>maven-surefire-plugin</artifactId>
  50. <version>2.22.1</version>
  51. </plugin>
  52. <plugin>
  53. <artifactId>maven-war-plugin</artifactId>
  54. <version>3.2.2</version>
  55. </plugin>
  56. <plugin>
  57. <artifactId>maven-install-plugin</artifactId>
  58. <version>2.5.2</version>
  59. </plugin>
  60. <plugin>
  61. <artifactId>maven-deploy-plugin</artifactId>
  62. <version>2.8.2</version>
  63. </plugin>
  64. </plugins>
  65. </pluginManagement>
  66. </build>
  67. </project>