pom.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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>org.mortbay.jetty</groupId>
  20. <artifactId>jetty-maven-plugin</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>junit</groupId>
  24. <artifactId>junit</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>javax.servlet</groupId>
  28. <artifactId>servlet-api</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>javax.servlet</groupId>
  32. <artifactId>jstl</artifactId>
  33. </dependency>
  34. <!-- tbschedule -->
  35. <dependency>
  36. <groupId>com.taobao.pamirs.schedule</groupId>
  37. <artifactId>tbschedule</artifactId>
  38. <version>3.2.8-SNAPSHOT</version>
  39. <scope>system</scope>
  40. <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/tbschedule-3.2.8-SNAPSHOT.jar
  41. </systemPath>
  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>cms-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.3.14.v20161028</version>
  84. <configuration>
  85. <scanIntervalSeconds>3</scanIntervalSeconds>
  86. <webApp>
  87. <contextPath>/cms-web</contextPath>
  88. </webApp>
  89. <httpConnector>
  90. <port>8080</port>
  91. </httpConnector>
  92. <reload>automatic</reload>
  93. </configuration>
  94. </plugin>
  95. </plugins>
  96. </build>
  97. </project>