pom.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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>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-mq</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.eclipse.jetty</groupId>
  73. <artifactId>jetty-maven-plugin</artifactId>
  74. <version>9.3.14.v20161028</version>
  75. <configuration>
  76. <scanIntervalSeconds>3</scanIntervalSeconds>
  77. <webApp>
  78. <contextPath>/cms-mq</contextPath>
  79. </webApp>
  80. <httpConnector>
  81. <port>8081</port>
  82. </httpConnector>
  83. <reload>automatic</reload>
  84. </configuration>
  85. </plugin>
  86. </plugins>
  87. </build>
  88. </project>