pom.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. </dependencies>
  35. <profiles>
  36. <profile>
  37. <id>dev</id>
  38. <properties>
  39. <env>dev</env>
  40. </properties>
  41. <activation>
  42. <activeByDefault>true</activeByDefault>
  43. </activation>
  44. </profile>
  45. <profile>
  46. <id>test</id>
  47. <properties>
  48. <env>test</env>
  49. </properties>
  50. </profile>
  51. <profile>
  52. <id>prod</id>
  53. <properties>
  54. <env>prod</env>
  55. </properties>
  56. </profile>
  57. </profiles>
  58. <build>
  59. <finalName>cms-web</finalName>
  60. <filters>
  61. <filter>src/main/resources/profiles/${env}.properties</filter>
  62. </filters>
  63. <resources>
  64. <resource>
  65. <directory>src/main/resources</directory>
  66. <filtering>true</filtering>
  67. </resource>
  68. </resources>
  69. <plugins>
  70. <!-- jetty插件 -->
  71. <plugin>
  72. <groupId>org.mortbay.jetty</groupId>
  73. <artifactId>jetty-maven-plugin</artifactId>
  74. <version>8.1.9.v20130131</version>
  75. <configuration>
  76. <scanIntervalSeconds>3</scanIntervalSeconds>
  77. <webApp>
  78. <contextPath>/cms-web</contextPath>
  79. </webApp>
  80. <connectors>
  81. <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
  82. <port>8088</port>
  83. </connector>
  84. </connectors>
  85. <reload>automatic</reload>
  86. </configuration>
  87. </plugin>
  88. </plugins>
  89. </build>
  90. </project>