pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>dmp</artifactId>
  7. <groupId>com.persagy</groupId>
  8. <version>4.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>dmp-alarm</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.persagy</groupId>
  15. <artifactId>dmp-model</artifactId>
  16. <version>4.0.0</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.persagy</groupId>
  20. <artifactId>dmp-common</artifactId>
  21. <version>4.0.0</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-data-jpa</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>mysql</groupId>
  29. <artifactId>mysql-connector-java</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.alibaba</groupId>
  33. <artifactId>druid</artifactId>
  34. <version>1.1.21</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.querydsl</groupId>
  38. <artifactId>querydsl-apt</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.querydsl</groupId>
  42. <artifactId>querydsl-sql</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.querydsl</groupId>
  46. <artifactId>querydsl-jpa</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.vladmihalcea</groupId>
  50. <artifactId>hibernate-types-52</artifactId>
  51. <version>2.9.13</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.alibaba</groupId>
  55. <artifactId>fastjson</artifactId>
  56. <version>1.2.47</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.apache.httpcomponents</groupId>
  60. <artifactId>httpcore</artifactId>
  61. <version>4.4.10</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.httpcomponents</groupId>
  65. <artifactId>httpclient</artifactId>
  66. <version>4.5.9</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-actuator</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-web</artifactId>
  75. </dependency>
  76. <!-- 注册中心 -->
  77. <dependency>
  78. <groupId>org.springframework.cloud</groupId>
  79. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  80. </dependency>
  81. <!-- 配置中心 -->
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-starter-config</artifactId>
  85. </dependency>
  86. <!-- rabbitmq -->
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-amqp</artifactId>
  90. </dependency>
  91. <!-- feign -->
  92. <dependency>
  93. <groupId>org.springframework.cloud</groupId>
  94. <artifactId>spring-cloud-starter-openfeign</artifactId>
  95. </dependency>
  96. <!-- hystrix 熔断器 -->
  97. <dependency>
  98. <groupId>com.netflix.hystrix</groupId>
  99. <artifactId>hystrix-javanica</artifactId>
  100. <version>1.5.12</version>
  101. </dependency>
  102. </dependencies>
  103. <build>
  104. <finalName>dmp-alarm</finalName>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-maven-plugin</artifactId>
  109. <configuration>
  110. <fork>true</fork>
  111. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  112. </configuration>
  113. <executions>
  114. <execution>
  115. <goals>
  116. <goal>repackage</goal>
  117. </goals>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <groupId>com.mysema.maven</groupId>
  123. <artifactId>apt-maven-plugin</artifactId>
  124. <version>1.1.3</version>
  125. <executions>
  126. <execution>
  127. <phase>generate-sources</phase>
  128. <goals>
  129. <goal>process</goal>
  130. </goals>
  131. <configuration>
  132. <outputDirectory>target/generated-sources</outputDirectory>
  133. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  134. </configuration>
  135. </execution>
  136. </executions>
  137. </plugin>
  138. <!-- 按照测试要求打成zip需要的配置 -->
  139. <!--获取git信息-->
  140. <!-- <plugin>-->
  141. <!-- <groupId>pl.project13.maven</groupId>-->
  142. <!-- <artifactId>git-commit-id-plugin</artifactId>-->
  143. <!-- <executions>-->
  144. <!-- <execution>-->
  145. <!-- <goals>-->
  146. <!-- <goal>revision</goal>-->
  147. <!-- </goals>-->
  148. <!-- </execution>-->
  149. <!-- </executions>-->
  150. <!-- <configuration>-->
  151. <!-- <verbose>true</verbose>-->
  152. <!-- <dateFormat>yyyyMMddHHmm</dateFormat>-->
  153. <!-- <generateGitPropertiesFile>true</generateGitPropertiesFile>-->
  154. <!-- &lt;!&ndash;<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>&ndash;&gt;-->
  155. <!-- <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>-->
  156. <!-- </configuration>-->
  157. <!-- </plugin>-->
  158. <plugin>
  159. <groupId>com.coderplus.maven.plugins</groupId>
  160. <artifactId>copy-rename-maven-plugin</artifactId>
  161. <version>1.0.1</version>
  162. <executions>
  163. <execution>
  164. <id>rename-file</id>
  165. <phase>compile</phase>
  166. <goals>
  167. <goal>rename</goal>
  168. </goals>
  169. <configuration>
  170. <!-- <sourceFile>${project.build.directory}/git.properties</sourceFile>-->
  171. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  172. </configuration>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. <!--拷贝资源文件 copy-resources-->
  177. <plugin>
  178. <artifactId>maven-resources-plugin</artifactId>
  179. <executions>
  180. <execution>
  181. <id>copy-resources</id>
  182. <phase>package</phase>
  183. <goals>
  184. <goal>copy-resources</goal>
  185. </goals>
  186. <configuration>
  187. <resources>
  188. <resource>
  189. <directory>src/main/resources/</directory>
  190. <includes>
  191. <include>**/*.yml</include>
  192. </includes>
  193. </resource>
  194. <resource>
  195. <directory>${project.build.directory}</directory>
  196. <includes>
  197. <include>**/version.txt</include>
  198. </includes>
  199. </resource>
  200. </resources>
  201. <outputDirectory>${project.build.directory}/config</outputDirectory>
  202. </configuration>
  203. </execution>
  204. <!--拷贝启动脚本-->
  205. <execution>
  206. <id>copy-version</id>
  207. <phase>package</phase>
  208. <goals>
  209. <goal>copy-resources</goal>
  210. </goals>
  211. <configuration>
  212. <resources>
  213. <resource>
  214. <directory>src/script</directory>
  215. </resource>
  216. </resources>
  217. <outputDirectory>${project.build.directory}</outputDirectory>
  218. </configuration>
  219. </execution>
  220. </executions>
  221. </plugin>
  222. <!-- &lt;!&ndash; 打包压缩 &ndash;&gt;-->
  223. <!-- <plugin>-->
  224. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  225. <!-- <artifactId>maven-assembly-plugin</artifactId>-->
  226. <!-- <executions>-->
  227. <!-- <execution>-->
  228. <!-- <id>make-assembly</id>-->
  229. <!-- &lt;!&ndash; 当执行mvn package时才会打包 &ndash;&gt;-->
  230. <!-- <phase>package</phase>-->
  231. <!-- <goals>-->
  232. <!-- <goal>single</goal>-->
  233. <!-- </goals>-->
  234. <!-- <configuration>-->
  235. <!-- <finalName>-->
  236. <!-- ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}-->
  237. <!-- </finalName>-->
  238. <!-- &lt;!&ndash;不包含assembly id&ndash;&gt;-->
  239. <!-- <appendAssemblyId>false</appendAssemblyId>-->
  240. <!-- &lt;!&ndash;输出路径&ndash;&gt;-->
  241. <!-- &lt;!&ndash;<outputDirectory>../target/co_search-${project.version}</outputDirectory>&ndash;&gt;-->
  242. <!-- <descriptors>-->
  243. <!-- <descriptor>src/script/zip.xml</descriptor>-->
  244. <!-- </descriptors>-->
  245. <!-- </configuration>-->
  246. <!-- </execution>-->
  247. <!-- </executions>-->
  248. <!-- </plugin>-->
  249. </plugins>
  250. </build>
  251. </project>