pom.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.zheng</groupId>
  5. <artifactId>zheng-demo</artifactId>
  6. <version>1.0.0</version>
  7. <packaging>war</packaging>
  8. <name>zheng-demo Maven Webapp</name>
  9. <url>http://www.zhangshuzheng.cn</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <maven.compiler.source>1.7</maven.compiler.source>
  13. <maven.compiler.target>1.7</maven.compiler.target>
  14. <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.zheng</groupId>
  19. <artifactId>zheng-common</artifactId>
  20. <version>1.0.0</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.zheng</groupId>
  24. <artifactId>zheng-admin</artifactId>
  25. <version>1.0.0</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>junit</groupId>
  29. <artifactId>junit</artifactId>
  30. <version>4.12</version>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>javax.servlet</groupId>
  35. <artifactId>servlet-api</artifactId>
  36. <version>2.5</version>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>javax.servlet</groupId>
  41. <artifactId>jstl</artifactId>
  42. <version>1.2</version>
  43. </dependency>
  44. </dependencies>
  45. <profiles>
  46. <profile>
  47. <id>dev</id>
  48. <properties>
  49. <env>dev</env>
  50. </properties>
  51. <activation>
  52. <activeByDefault>true</activeByDefault>
  53. </activation>
  54. </profile>
  55. <profile>
  56. <id>test</id>
  57. <properties>
  58. <env>test</env>
  59. </properties>
  60. </profile>
  61. <profile>
  62. <id>prod</id>
  63. <properties>
  64. <env>prod</env>
  65. </properties>
  66. </profile>
  67. </profiles>
  68. <build>
  69. <finalName>zheng-demo</finalName>
  70. <filters>
  71. <filter>src/main/resources/profiles/${env}.properties</filter>
  72. </filters>
  73. <resources>
  74. <resource>
  75. <directory>src/main/resources</directory>
  76. <filtering>true</filtering>
  77. </resource>
  78. </resources>
  79. <plugins>
  80. <!-- jetty插件 -->
  81. <plugin>
  82. <groupId>org.eclipse.jetty</groupId>
  83. <artifactId>jetty-maven-plugin</artifactId>
  84. <!--<version>9.0.0.v20130308</version>-->
  85. <version>9.2.7.v20150116</version>
  86. <configuration>
  87. <scanIntervalSeconds>3</scanIntervalSeconds>
  88. <webApp>
  89. <contextPath>/</contextPath>
  90. </webApp>
  91. <httpConnector>
  92. <port>8888</port>
  93. </httpConnector>
  94. <reload>automatic</reload>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-surefire-plugin</artifactId>
  100. <version>2.18.1</version>
  101. <configuration>
  102. <skipTests>true</skipTests>
  103. <testFailureIgnore>true</testFailureIgnore>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </build>
  108. </project>