pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. <parent>
  5. <groupId>com.zheng</groupId>
  6. <artifactId>zheng-cms</artifactId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <artifactId>zheng-cms-job</artifactId>
  10. <packaging>war</packaging>
  11. <name>zheng-cms-job Maven Webapp</name>
  12. <url>http://www.zhangshuzheng.cn</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.zheng</groupId>
  16. <artifactId>zheng-cms-rpc-api</artifactId>
  17. <version>1.0.0</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>junit</groupId>
  21. <artifactId>junit</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>javax.servlet</groupId>
  25. <artifactId>servlet-api</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>javax.servlet</groupId>
  29. <artifactId>jstl</artifactId>
  30. </dependency>
  31. </dependencies>
  32. <profiles>
  33. <profile>
  34. <id>dev</id>
  35. <properties>
  36. <env>dev</env>
  37. </properties>
  38. <activation>
  39. <activeByDefault>true</activeByDefault>
  40. </activation>
  41. </profile>
  42. <profile>
  43. <id>test</id>
  44. <properties>
  45. <env>test</env>
  46. </properties>
  47. </profile>
  48. <profile>
  49. <id>prod</id>
  50. <properties>
  51. <env>prod</env>
  52. </properties>
  53. </profile>
  54. </profiles>
  55. <build>
  56. <finalName>zheng-cms-job</finalName>
  57. <filters>
  58. <filter>src/main/resources/profiles/${env}.properties</filter>
  59. </filters>
  60. <resources>
  61. <resource>
  62. <directory>src/main/resources</directory>
  63. <filtering>true</filtering>
  64. </resource>
  65. </resources>
  66. <plugins>
  67. <!-- jetty插件 -->
  68. <plugin>
  69. <groupId>org.eclipse.jetty</groupId>
  70. <artifactId>jetty-maven-plugin</artifactId>
  71. <!--<version>9.0.0.v20130308</version>-->
  72. <version>9.2.7.v20150116</version>
  73. <configuration>
  74. <scanIntervalSeconds>3</scanIntervalSeconds>
  75. <webApp>
  76. <contextPath>/</contextPath>
  77. </webApp>
  78. <httpConnector>
  79. <port>2223</port>
  80. </httpConnector>
  81. <reload>automatic</reload>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-surefire-plugin</artifactId>
  87. <version>2.18.1</version>
  88. <configuration>
  89. <skipTests>true</skipTests>
  90. <testFailureIgnore>true</testFailureIgnore>
  91. </configuration>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. </project>