pom.xml 3.1 KB

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