pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. <!--hutool工具类-->
  103. <dependency>
  104. <groupId>cn.hutool</groupId>
  105. <artifactId>hutool-all</artifactId>
  106. <version>5.4.3</version>
  107. <scope>compile</scope>
  108. </dependency>
  109. </dependencies>
  110. <build>
  111. <finalName>dmp-alarm</finalName>
  112. <plugins>
  113. <plugin>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-maven-plugin</artifactId>
  116. <configuration>
  117. <fork>true</fork>
  118. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  119. </configuration>
  120. <executions>
  121. <execution>
  122. <goals>
  123. <goal>repackage</goal>
  124. </goals>
  125. </execution>
  126. </executions>
  127. </plugin>
  128. <plugin>
  129. <groupId>com.mysema.maven</groupId>
  130. <artifactId>apt-maven-plugin</artifactId>
  131. <version>1.1.3</version>
  132. <executions>
  133. <execution>
  134. <phase>generate-sources</phase>
  135. <goals>
  136. <goal>process</goal>
  137. </goals>
  138. <configuration>
  139. <outputDirectory>target/generated-sources</outputDirectory>
  140. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  141. </configuration>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <!-- 按照测试要求打成zip需要的配置 -->
  146. <!--获取git信息-->
  147. <!-- <plugin>-->
  148. <!-- <groupId>pl.project13.maven</groupId>-->
  149. <!-- <artifactId>git-commit-id-plugin</artifactId>-->
  150. <!-- <executions>-->
  151. <!-- <execution>-->
  152. <!-- <goals>-->
  153. <!-- <goal>revision</goal>-->
  154. <!-- </goals>-->
  155. <!-- </execution>-->
  156. <!-- </executions>-->
  157. <!-- <configuration>-->
  158. <!-- <verbose>true</verbose>-->
  159. <!-- <dateFormat>yyyyMMddHHmm</dateFormat>-->
  160. <!-- <generateGitPropertiesFile>true</generateGitPropertiesFile>-->
  161. <!-- &lt;!&ndash;<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>&ndash;&gt;-->
  162. <!-- <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>-->
  163. <!-- </configuration>-->
  164. <!-- </plugin>-->
  165. <plugin>
  166. <groupId>com.coderplus.maven.plugins</groupId>
  167. <artifactId>copy-rename-maven-plugin</artifactId>
  168. <version>1.0.1</version>
  169. <executions>
  170. <execution>
  171. <id>rename-file</id>
  172. <phase>compile</phase>
  173. <goals>
  174. <goal>rename</goal>
  175. </goals>
  176. <configuration>
  177. <!-- <sourceFile>${project.build.directory}/git.properties</sourceFile>-->
  178. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. <!--拷贝资源文件 copy-resources-->
  184. <plugin>
  185. <artifactId>maven-resources-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <id>copy-resources</id>
  189. <phase>package</phase>
  190. <goals>
  191. <goal>copy-resources</goal>
  192. </goals>
  193. <configuration>
  194. <resources>
  195. <resource>
  196. <directory>src/main/resources/</directory>
  197. <includes>
  198. <include>**/*.yml</include>
  199. </includes>
  200. </resource>
  201. <resource>
  202. <directory>${project.build.directory}</directory>
  203. <includes>
  204. <include>**/version.txt</include>
  205. </includes>
  206. </resource>
  207. </resources>
  208. <outputDirectory>${project.build.directory}/config</outputDirectory>
  209. </configuration>
  210. </execution>
  211. <!--拷贝启动脚本-->
  212. <execution>
  213. <id>copy-version</id>
  214. <phase>package</phase>
  215. <goals>
  216. <goal>copy-resources</goal>
  217. </goals>
  218. <configuration>
  219. <resources>
  220. <resource>
  221. <directory>src/script</directory>
  222. </resource>
  223. </resources>
  224. <outputDirectory>${project.build.directory}</outputDirectory>
  225. </configuration>
  226. </execution>
  227. </executions>
  228. </plugin>
  229. <!-- &lt;!&ndash; 打包压缩 &ndash;&gt;-->
  230. <!-- <plugin>-->
  231. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  232. <!-- <artifactId>maven-assembly-plugin</artifactId>-->
  233. <!-- <executions>-->
  234. <!-- <execution>-->
  235. <!-- <id>make-assembly</id>-->
  236. <!-- &lt;!&ndash; 当执行mvn package时才会打包 &ndash;&gt;-->
  237. <!-- <phase>package</phase>-->
  238. <!-- <goals>-->
  239. <!-- <goal>single</goal>-->
  240. <!-- </goals>-->
  241. <!-- <configuration>-->
  242. <!-- <finalName>-->
  243. <!-- ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}-->
  244. <!-- </finalName>-->
  245. <!-- &lt;!&ndash;不包含assembly id&ndash;&gt;-->
  246. <!-- <appendAssemblyId>false</appendAssemblyId>-->
  247. <!-- &lt;!&ndash;输出路径&ndash;&gt;-->
  248. <!-- &lt;!&ndash;<outputDirectory>../target/co_search-${project.version}</outputDirectory>&ndash;&gt;-->
  249. <!-- <descriptors>-->
  250. <!-- <descriptor>src/script/zip.xml</descriptor>-->
  251. <!-- </descriptors>-->
  252. <!-- </configuration>-->
  253. <!-- </execution>-->
  254. <!-- </executions>-->
  255. <!-- </plugin>-->
  256. </plugins>
  257. </build>
  258. </project>