pom.xml 3.4 KB

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