pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.zheng</groupId>
  6. <artifactId>zheng-message</artifactId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <artifactId>zheng-message-server</artifactId>
  10. <packaging>war</packaging>
  11. <name>zheng-message-server</name>
  12. <url>http://www.zhangshuzheng.cn</url>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.zheng</groupId>
  19. <artifactId>zheng-common</artifactId>
  20. <version>1.0.0</version>
  21. <type>jar</type>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.corundumstudio.socketio</groupId>
  25. <artifactId>netty-socketio</artifactId>
  26. <version>1.7.12.zheng</version>
  27. <scope>system</scope>
  28. <systemPath>${basedir}/lib/netty-socketio-1.7.12.zheng.jar</systemPath>
  29. </dependency>
  30. <dependency>
  31. <groupId>junit</groupId>
  32. <artifactId>junit</artifactId>
  33. <version>4.12</version>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>javax.servlet</groupId>
  38. <artifactId>servlet-api</artifactId>
  39. <version>2.5</version>
  40. <scope>provided</scope>
  41. </dependency>
  42. <dependency>
  43. <groupId>javax.servlet</groupId>
  44. <artifactId>jstl</artifactId>
  45. <version>1.2</version>
  46. </dependency>
  47. </dependencies>
  48. <profiles>
  49. <profile>
  50. <id>dev</id>
  51. <properties>
  52. <env>dev</env>
  53. </properties>
  54. <activation>
  55. <activeByDefault>true</activeByDefault>
  56. </activation>
  57. </profile>
  58. <profile>
  59. <id>test</id>
  60. <properties>
  61. <env>test</env>
  62. </properties>
  63. </profile>
  64. <profile>
  65. <id>prod</id>
  66. <properties>
  67. <env>prod</env>
  68. </properties>
  69. </profile>
  70. </profiles>
  71. <build>
  72. <finalName>zheng-message-server</finalName>
  73. <filters>
  74. <filter>src/main/resources/profiles/${env}.properties</filter>
  75. </filters>
  76. <resources>
  77. <resource>
  78. <directory>src/main/resources</directory>
  79. <filtering>true</filtering>
  80. </resource>
  81. </resources>
  82. <plugins>
  83. <!-- jetty插件 -->
  84. <plugin>
  85. <groupId>org.eclipse.jetty</groupId>
  86. <artifactId>jetty-maven-plugin</artifactId>
  87. <!--<version>9.0.0.v20130308</version>-->
  88. <version>9.2.7.v20150116</version>
  89. <configuration>
  90. <scanIntervalSeconds>3</scanIntervalSeconds>
  91. <webApp>
  92. <contextPath>/</contextPath>
  93. </webApp>
  94. <httpConnector>
  95. <port>8881</port>
  96. </httpConnector>
  97. <reload>automatic</reload>
  98. </configuration>
  99. </plugin>
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-surefire-plugin</artifactId>
  103. <version>2.18.1</version>
  104. <configuration>
  105. <skipTests>true</skipTests>
  106. <testFailureIgnore>true</testFailureIgnore>
  107. </configuration>
  108. </plugin>
  109. <plugin>
  110. <groupId>org.apache.maven.plugins</groupId>
  111. <artifactId>maven-dependency-plugin</artifactId>
  112. <version>2.10</version>
  113. <executions>
  114. <execution>
  115. <id>copy-dependencies</id>
  116. <phase>compile</phase>
  117. <goals>
  118. <goal>copy-dependencies</goal>
  119. </goals>
  120. <configuration>
  121. <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/lib</outputDirectory>
  122. <includeScope>system</includeScope>
  123. </configuration>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. </project>