pom.xml 3.6 KB

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