pom.xml 3.5 KB

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