pom.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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-rpc-service</artifactId>
  10. <packaging>war</packaging>
  11. <name>zheng-cms-rpc-service 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. <version>4.12</version>
  23. <scope>test</scope>
  24. </dependency>
  25. <dependency>
  26. <groupId>javax.servlet</groupId>
  27. <artifactId>servlet-api</artifactId>
  28. <version>2.5</version>
  29. <scope>provided</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>javax.servlet</groupId>
  33. <artifactId>jstl</artifactId>
  34. <version>1.2</version>
  35. </dependency>
  36. </dependencies>
  37. <profiles>
  38. <profile>
  39. <id>dev</id>
  40. <properties>
  41. <env>dev</env>
  42. </properties>
  43. <activation>
  44. <activeByDefault>true</activeByDefault>
  45. </activation>
  46. </profile>
  47. <profile>
  48. <id>test</id>
  49. <properties>
  50. <env>test</env>
  51. </properties>
  52. </profile>
  53. <profile>
  54. <id>prod</id>
  55. <properties>
  56. <env>prod</env>
  57. </properties>
  58. </profile>
  59. </profiles>
  60. <build>
  61. <finalName>zheng-cms-rpc-service</finalName>
  62. <filters>
  63. <filter>src/main/resources/profiles/${env}.properties</filter>
  64. </filters>
  65. <resources>
  66. <resource>
  67. <directory>src/main/resources</directory>
  68. <filtering>true</filtering>
  69. </resource>
  70. </resources>
  71. <plugins>
  72. <!-- jetty插件 -->
  73. <plugin>
  74. <groupId>org.eclipse.jetty</groupId>
  75. <artifactId>jetty-maven-plugin</artifactId>
  76. <!--<version>9.0.0.v20130308</version>-->
  77. <version>9.2.7.v20150116</version>
  78. <configuration>
  79. <scanIntervalSeconds>3</scanIntervalSeconds>
  80. <webApp>
  81. <contextPath>/</contextPath>
  82. </webApp>
  83. <httpConnector>
  84. <port>2225</port>
  85. </httpConnector>
  86. <reload>automatic</reload>
  87. </configuration>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-surefire-plugin</artifactId>
  92. <version>2.18.1</version>
  93. <configuration>
  94. <skipTests>true</skipTests>
  95. <testFailureIgnore>true</testFailureIgnore>
  96. </configuration>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. </project>