pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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-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. <!-- tbschedule -->
  32. <dependency>
  33. <groupId>com.taobao.pamirs.schedule</groupId>
  34. <artifactId>tbschedule</artifactId>
  35. <version>3.2.8-SNAPSHOT</version>
  36. <scope>system</scope>
  37. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/tbschedule-3.2.8-SNAPSHOT.jar
  38. </systemPath>
  39. </dependency>
  40. <!-- rocketmq -->
  41. <dependency>
  42. <groupId>com.alibaba.rocketmq</groupId>
  43. <artifactId>rocketmq-client</artifactId>
  44. <version>3.6.2.Final</version>
  45. </dependency>
  46. </dependencies>
  47. <profiles>
  48. <profile>
  49. <id>dev</id>
  50. <properties>
  51. <env>dev</env>
  52. </properties>
  53. <activation>
  54. <activeByDefault>true</activeByDefault>
  55. </activation>
  56. </profile>
  57. <profile>
  58. <id>test</id>
  59. <properties>
  60. <env>test</env>
  61. </properties>
  62. </profile>
  63. <profile>
  64. <id>prod</id>
  65. <properties>
  66. <env>prod</env>
  67. </properties>
  68. </profile>
  69. </profiles>
  70. <build>
  71. <finalName>zheng-cms-web</finalName>
  72. <filters>
  73. <filter>src/main/resources/profiles/${env}.properties</filter>
  74. </filters>
  75. <resources>
  76. <resource>
  77. <directory>src/main/resources</directory>
  78. <filtering>true</filtering>
  79. </resource>
  80. </resources>
  81. <plugins>
  82. <!-- jetty插件 -->
  83. <plugin>
  84. <groupId>org.eclipse.jetty</groupId>
  85. <artifactId>jetty-maven-plugin</artifactId>
  86. <!--<version>9.0.0.v20130308</version>-->
  87. <version>9.2.7.v20150116</version>
  88. <configuration>
  89. <scanIntervalSeconds>3</scanIntervalSeconds>
  90. <webApp>
  91. <contextPath>/</contextPath>
  92. </webApp>
  93. <httpConnector>
  94. <port>2224</port>
  95. </httpConnector>
  96. <reload>automatic</reload>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-surefire-plugin</artifactId>
  102. <version>2.18.1</version>
  103. <configuration>
  104. <skipTests>true</skipTests>
  105. <testFailureIgnore>true</testFailureIgnore>
  106. </configuration>
  107. </plugin>
  108. </plugins>
  109. </build>
  110. </project>