1
1

pom.xml 3.4 KB

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