pom.xml 3.5 KB

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