pom.xml 3.4 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-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. <!-- sdk -->
  34. <dependency>
  35. <groupId>com.zheng</groupId>
  36. <artifactId>zheng-oss-sdk</artifactId>
  37. <version>1.0.0</version>
  38. <type>jar</type>
  39. </dependency>
  40. </dependencies>
  41. <profiles>
  42. <profile>
  43. <id>dev</id>
  44. <properties>
  45. <env>dev</env>
  46. </properties>
  47. <activation>
  48. <activeByDefault>true</activeByDefault>
  49. </activation>
  50. </profile>
  51. <profile>
  52. <id>test</id>
  53. <properties>
  54. <env>test</env>
  55. </properties>
  56. </profile>
  57. <profile>
  58. <id>prod</id>
  59. <properties>
  60. <env>prod</env>
  61. </properties>
  62. </profile>
  63. </profiles>
  64. <build>
  65. <finalName>zheng-oss-web</finalName>
  66. <filters>
  67. <filter>src/main/resources/profiles/${env}.properties</filter>
  68. </filters>
  69. <resources>
  70. <resource>
  71. <directory>src/main/resources</directory>
  72. <filtering>true</filtering>
  73. </resource>
  74. </resources>
  75. <plugins>
  76. <!-- jetty插件 -->
  77. <plugin>
  78. <groupId>org.eclipse.jetty</groupId>
  79. <artifactId>jetty-maven-plugin</artifactId>
  80. <!--<version>9.0.0.v20130308</version>-->
  81. <version>9.2.7.v20150116</version>
  82. <configuration>
  83. <scanIntervalSeconds>3</scanIntervalSeconds>
  84. <webApp>
  85. <contextPath>/</contextPath>
  86. </webApp>
  87. <httpConnector>
  88. <port>7771</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>