pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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-web</artifactId>
  10. <packaging>war</packaging>
  11. <name>zheng-cms-web Maven Webapp</name>
  12. <url>http://www.zhangshuzheng.cn</url>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.zheng</groupId>
  16. <artifactId>zheng-cms-service</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>junit</groupId>
  20. <artifactId>junit</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>javax.servlet</groupId>
  24. <artifactId>servlet-api</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>javax.servlet</groupId>
  28. <artifactId>jstl</artifactId>
  29. </dependency>
  30. <!-- tbschedule -->
  31. <dependency>
  32. <groupId>com.taobao.pamirs.schedule</groupId>
  33. <artifactId>tbschedule</artifactId>
  34. <version>3.2.8-SNAPSHOT</version>
  35. <scope>system</scope>
  36. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/tbschedule-3.2.8-SNAPSHOT.jar
  37. </systemPath>
  38. </dependency>
  39. <!-- rocketmq -->
  40. <dependency>
  41. <groupId>com.alibaba.rocketmq</groupId>
  42. <artifactId>rocketmq-client</artifactId>
  43. <version>3.6.2.Final</version>
  44. </dependency>
  45. <!-- zheng-upms-client -->
  46. <dependency>
  47. <groupId>com.zheng</groupId>
  48. <artifactId>zheng-upms-client</artifactId>
  49. <version>1.0.0</version>
  50. </dependency>
  51. </dependencies>
  52. <profiles>
  53. <profile>
  54. <id>dev</id>
  55. <properties>
  56. <env>dev</env>
  57. </properties>
  58. <activation>
  59. <activeByDefault>true</activeByDefault>
  60. </activation>
  61. </profile>
  62. <profile>
  63. <id>test</id>
  64. <properties>
  65. <env>test</env>
  66. </properties>
  67. </profile>
  68. <profile>
  69. <id>prod</id>
  70. <properties>
  71. <env>prod</env>
  72. </properties>
  73. </profile>
  74. </profiles>
  75. <build>
  76. <finalName>zheng-cms-web</finalName>
  77. <filters>
  78. <filter>src/main/resources/profiles/${env}.properties</filter>
  79. </filters>
  80. <resources>
  81. <resource>
  82. <directory>src/main/resources</directory>
  83. <filtering>true</filtering>
  84. </resource>
  85. </resources>
  86. <plugins>
  87. <!-- jetty插件 -->
  88. <plugin>
  89. <groupId>org.eclipse.jetty</groupId>
  90. <artifactId>jetty-maven-plugin</artifactId>
  91. <!--<version>9.0.0.v20130308</version>-->
  92. <version>9.2.7.v20150116</version>
  93. <configuration>
  94. <scanIntervalSeconds>3</scanIntervalSeconds>
  95. <webApp>
  96. <contextPath>/</contextPath>
  97. </webApp>
  98. <httpConnector>
  99. <port>2224</port>
  100. </httpConnector>
  101. <reload>automatic</reload>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-surefire-plugin</artifactId>
  107. <version>2.18.1</version>
  108. <configuration>
  109. <!--是否跳过单元测试-->
  110. <skipTests>true</skipTests>
  111. <!--是否忽略单元测试错误-->
  112. <testFailureIgnore>true</testFailureIgnore>
  113. </configuration>
  114. </plugin>
  115. </plugins>
  116. </build>
  117. </project>