pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <packaging>jar</packaging>
  6. <parent>
  7. <groupId>com.kakarote</groupId>
  8. <artifactId>wkcrm</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>message</artifactId>
  12. <version>0.0.1-SNAPSHOT</version>
  13. <name>message</name>
  14. <description>消息引擎</description>
  15. <dependencies>
  16. <dependency>
  17. <groupId>com.kakarote</groupId>
  18. <artifactId>core</artifactId>
  19. <version>${core.version}</version>
  20. </dependency>
  21. <!-- RabbitMQ -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-amqp</artifactId>
  25. </dependency>
  26. <!-- websocket -->
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-websocket</artifactId>
  30. </dependency>
  31. <!-- netty-socketio: 仿`node.js`实现的socket.io服务端 -->
  32. <dependency>
  33. <groupId>com.corundumstudio.socketio</groupId>
  34. <artifactId>netty-socketio</artifactId>
  35. <version>1.7.7</version>
  36. </dependency>
  37. <!-- https://mvnrepository.com/artifact/com.getui.push/restful-sdk -->
  38. <dependency>
  39. <groupId>com.getui.push</groupId>
  40. <artifactId>restful-sdk</artifactId>
  41. <version>1.0.0.1</version>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <resources>
  46. <resource>
  47. <!-- xml放在java目录下-->
  48. <directory>src/main/java/com/qdoner/message/</directory>
  49. <includes>
  50. <include>**/*.xml</include>
  51. </includes>
  52. </resource>
  53. <!--解决idea不识别resources的问题-->
  54. <resource>
  55. <directory>src/main/resources</directory>
  56. <filtering>true</filtering>
  57. </resource>
  58. </resources>
  59. <plugins>
  60. <!--打包jar-->
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-jar-plugin</artifactId>
  64. <configuration>
  65. <archive>
  66. <manifest>
  67. <addClasspath>true</addClasspath>
  68. <!--MANIFEST.MF 中 Class-Path 加入前缀-->
  69. <classpathPrefix>lib/</classpathPrefix>
  70. <!--jar包不包含唯一版本标识-->
  71. <useUniqueVersions>false</useUniqueVersions>
  72. <!--指定入口类-->
  73. <mainClass>com.qdoner.message.MessageApplication</mainClass>
  74. </manifest>
  75. <manifestEntries>
  76. <!--MANIFEST.MF 中 Class-Path 加入资源文件目录-->
  77. <Class-Path>./config/</Class-Path>
  78. </manifestEntries>
  79. </archive>
  80. <outputDirectory>${project.build.directory}</outputDirectory>
  81. </configuration>
  82. </plugin>
  83. <!--拷贝依赖 copy-dependencies-->
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-dependency-plugin</artifactId>
  87. <executions>
  88. <execution>
  89. <id>copy-dependencies</id>
  90. <phase>package</phase>
  91. <goals>
  92. <goal>copy-dependencies</goal>
  93. </goals>
  94. <configuration>
  95. <outputDirectory>
  96. ${project.build.directory}/lib/
  97. </outputDirectory>
  98. </configuration>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. <!--拷贝资源文件 copy-resources-->
  103. <plugin>
  104. <artifactId>maven-resources-plugin</artifactId>
  105. <executions>
  106. <execution>
  107. <id>copy-resources</id>
  108. <phase>package</phase>
  109. <goals>
  110. <goal>copy-resources</goal>
  111. </goals>
  112. <configuration>
  113. <resources>
  114. <resource>
  115. <directory>src/main/resources/</directory>
  116. </resource>
  117. </resources>
  118. <outputDirectory>${project.build.directory}/config</outputDirectory>
  119. </configuration>
  120. </execution>
  121. </executions>
  122. </plugin>
  123. <plugin>
  124. <artifactId>maven-assembly-plugin</artifactId>
  125. <configuration>
  126. <appendAssemblyId>false</appendAssemblyId>
  127. <descriptors>
  128. <descriptor>../assembly.xml</descriptor>
  129. </descriptors>
  130. </configuration>
  131. <executions>
  132. <execution>
  133. <id>make-assembly</id>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>single</goal>
  137. </goals>
  138. </execution>
  139. </executions>
  140. </plugin>
  141. <!-- Allatori plugin start -->
  142. <!-- <plugin>-->
  143. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  144. <!-- <artifactId>maven-resources-plugin</artifactId>-->
  145. <!-- <version>2.6</version>-->
  146. <!-- <executions>-->
  147. <!-- <execution>-->
  148. <!-- <id>copy-and-filter-allatori-config</id>-->
  149. <!-- <phase>package</phase>-->
  150. <!-- <goals>-->
  151. <!-- <goal>copy-resources</goal>-->
  152. <!-- </goals>-->
  153. <!-- <configuration>-->
  154. <!-- <outputDirectory>${basedir}/target</outputDirectory>-->
  155. <!-- <resources>-->
  156. <!-- <resource>-->
  157. <!-- <directory>${basedir}/allatori</directory>-->
  158. <!-- <includes>-->
  159. <!-- <include>allatori.xml</include>-->
  160. <!-- </includes>-->
  161. <!-- <filtering>true</filtering>-->
  162. <!-- </resource>-->
  163. <!-- </resources>-->
  164. <!-- </configuration>-->
  165. <!-- </execution>-->
  166. <!-- </executions>-->
  167. <!-- </plugin>-->
  168. <!-- <plugin>-->
  169. <!-- <groupId>org.codehaus.mojo</groupId>-->
  170. <!-- <artifactId>exec-maven-plugin</artifactId>-->
  171. <!-- <version>1.2.1</version>-->
  172. <!-- <executions>-->
  173. <!-- <execution>-->
  174. <!-- <id>run-allatori</id>-->
  175. <!-- <phase>package</phase>-->
  176. <!-- <goals>-->
  177. <!-- <goal>exec</goal>-->
  178. <!-- </goals>-->
  179. <!-- </execution>-->
  180. <!-- </executions>-->
  181. <!-- <configuration>-->
  182. <!-- <executable>java</executable>-->
  183. <!-- <arguments>-->
  184. <!-- <argument>-Xms128m</argument>-->
  185. <!-- <argument>-Xmx512m</argument>-->
  186. <!-- <argument>-jar</argument>-->
  187. <!-- <argument>${basedir}/lib/allatori.jar</argument>-->
  188. <!-- <argument>${basedir}/target/allatori.xml</argument>-->
  189. <!-- </arguments>-->
  190. <!-- </configuration>-->
  191. <!-- </plugin>-->
  192. <!-- Allatori plugin end -->
  193. </plugins>
  194. </build>
  195. </project>