pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <!-- service -->
  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. <dependency>
  41. <groupId>org.mortbay.jetty</groupId>
  42. <artifactId>jetty-maven-plugin</artifactId>
  43. <version>8.1.16.v20140903</version>
  44. </dependency>
  45. </dependencies>
  46. <profiles>
  47. <profile>
  48. <id>dev</id>
  49. <properties>
  50. <env>dev</env>
  51. </properties>
  52. <activation>
  53. <activeByDefault>true</activeByDefault>
  54. </activation>
  55. </profile>
  56. <profile>
  57. <id>test</id>
  58. <properties>
  59. <env>test</env>
  60. </properties>
  61. </profile>
  62. <profile>
  63. <id>prod</id>
  64. <properties>
  65. <env>prod</env>
  66. </properties>
  67. </profile>
  68. </profiles>
  69. <build>
  70. <finalName>zheng-oss-web</finalName>
  71. <filters>
  72. <filter>src/main/resources/profiles/${env}.properties</filter>
  73. </filters>
  74. <resources>
  75. <resource>
  76. <directory>src/main/resources</directory>
  77. <filtering>true</filtering>
  78. </resource>
  79. </resources>
  80. <plugins>
  81. <!-- jetty插件 -->
  82. <plugin>
  83. <groupId>org.eclipse.jetty</groupId>
  84. <artifactId>jetty-maven-plugin</artifactId>
  85. <version>9.0.0.v20130308</version>
  86. <configuration>
  87. <scanIntervalSeconds>3</scanIntervalSeconds>
  88. <webApp>
  89. <contextPath>/zheng-oss-web</contextPath>
  90. </webApp>
  91. <httpConnector>
  92. <port>7771</port>
  93. </httpConnector>
  94. <reload>automatic</reload>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-surefire-plugin</artifactId>
  100. <version>2.18.1</version>
  101. <configuration>
  102. <skipTests>true</skipTests>
  103. <testFailureIgnore>true</testFailureIgnore>
  104. </configuration>
  105. </plugin>
  106. </plugins>
  107. </build>
  108. </project>