pom.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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-mq</artifactId>
  10. <packaging>war</packaging>
  11. <name>zheng-cms-mq 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. </dependencies>
  31. <profiles>
  32. <profile>
  33. <id>dev</id>
  34. <properties>
  35. <env>dev</env>
  36. </properties>
  37. <activation>
  38. <activeByDefault>true</activeByDefault>
  39. </activation>
  40. </profile>
  41. <profile>
  42. <id>test</id>
  43. <properties>
  44. <env>test</env>
  45. </properties>
  46. </profile>
  47. <profile>
  48. <id>prod</id>
  49. <properties>
  50. <env>prod</env>
  51. </properties>
  52. </profile>
  53. </profiles>
  54. <build>
  55. <finalName>cms-mq</finalName>
  56. <filters>
  57. <filter>src/main/resources/profiles/${env}.properties</filter>
  58. </filters>
  59. <resources>
  60. <resource>
  61. <directory>src/main/resources</directory>
  62. <filtering>true</filtering>
  63. </resource>
  64. </resources>
  65. <plugins>
  66. <!-- jetty插件 -->
  67. <plugin>
  68. <groupId>org.eclipse.jetty</groupId>
  69. <artifactId>jetty-maven-plugin</artifactId>
  70. <version>9.0.0.v20130308</version>
  71. <configuration>
  72. <scanIntervalSeconds>3</scanIntervalSeconds>
  73. <webApp>
  74. <contextPath>/cms-mq</contextPath>
  75. </webApp>
  76. <httpConnector>
  77. <port>8081</port>
  78. </httpConnector>
  79. <reload>automatic</reload>
  80. </configuration>
  81. </plugin>
  82. </plugins>
  83. </build>
  84. </project>