pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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>2.0.0</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. <exclusions>
  72. <exclusion>
  73. <artifactId>log4j-to-slf4j</artifactId>
  74. <groupId>org.apache.logging.log4j</groupId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-web</artifactId>
  81. <exclusions>
  82. <exclusion>
  83. <artifactId>spring-web</artifactId>
  84. <groupId>org.springframework</groupId>
  85. </exclusion>
  86. </exclusions>
  87. </dependency>
  88. <!-- 注册中心 -->
  89. <dependency>
  90. <groupId>org.springframework.cloud</groupId>
  91. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  92. <exclusions>
  93. <exclusion>
  94. <artifactId>xstream</artifactId>
  95. <groupId>com.thoughtworks.xstream</groupId>
  96. </exclusion>
  97. </exclusions>
  98. </dependency>
  99. <!-- 配置中心 -->
  100. <dependency>
  101. <groupId>org.springframework.cloud</groupId>
  102. <artifactId>spring-cloud-starter-config</artifactId>
  103. <exclusions>
  104. <exclusion>
  105. <artifactId>spring-web</artifactId>
  106. <groupId>org.springframework</groupId>
  107. </exclusion>
  108. </exclusions>
  109. </dependency>
  110. <!-- rabbitmq -->
  111. <dependency>
  112. <groupId>org.springframework.boot</groupId>
  113. <artifactId>spring-boot-starter-amqp</artifactId>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.springframework.amqp</groupId>
  117. <artifactId>spring-amqp</artifactId>
  118. <version>2.4.17</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.springframework.amqp</groupId>
  122. <artifactId>spring-rabbit</artifactId>
  123. </dependency>
  124. <!-- feign -->
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-starter-openfeign</artifactId>
  128. <exclusions>
  129. <exclusion>
  130. <artifactId>spring-web</artifactId>
  131. <groupId>org.springframework</groupId>
  132. </exclusion>
  133. </exclusions>
  134. </dependency>
  135. <!-- hystrix 熔断器 -->
  136. <dependency>
  137. <groupId>com.netflix.hystrix</groupId>
  138. <artifactId>hystrix-javanica</artifactId>
  139. <version>1.5.12</version>
  140. </dependency>
  141. <!--hutool工具类-->
  142. <dependency>
  143. <groupId>cn.hutool</groupId>
  144. <artifactId>hutool-all</artifactId>
  145. </dependency>
  146. <!-- 解决阿里云监测漏洞,升级以下jar包版本 -->
  147. <dependency>
  148. <artifactId>xstream</artifactId>
  149. <groupId>com.thoughtworks.xstream</groupId>
  150. <version>1.4.18</version>
  151. </dependency>
  152. <dependency>
  153. <artifactId>spring-web</artifactId>
  154. <groupId>org.springframework</groupId>
  155. <version>5.3.32</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.logging.log4j</groupId>
  159. <artifactId>log4j-api</artifactId>
  160. <version>2.17.0</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.apache.logging.log4j</groupId>
  164. <artifactId>log4j-core</artifactId>
  165. <version>2.17.1</version>
  166. <exclusions>
  167. <exclusion>
  168. <artifactId>log4j-api</artifactId>
  169. <groupId>org.apache.logging.log4j</groupId>
  170. </exclusion>
  171. </exclusions>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.apache.logging.log4j</groupId>
  175. <artifactId>log4j-to-slf4j</artifactId>
  176. <version>2.17.0</version>
  177. <exclusions>
  178. <exclusion>
  179. <artifactId>log4j-api</artifactId>
  180. <groupId>org.apache.logging.log4j</groupId>
  181. </exclusion>
  182. </exclusions>
  183. </dependency>
  184. </dependencies>
  185. <build>
  186. <finalName>dmp-alarm</finalName>
  187. <plugins>
  188. <plugin>
  189. <groupId>org.springframework.boot</groupId>
  190. <artifactId>spring-boot-maven-plugin</artifactId>
  191. <version>2.7.1</version>
  192. <configuration>
  193. <fork>true</fork>
  194. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  195. </configuration>
  196. <executions>
  197. <execution>
  198. <goals>
  199. <goal>repackage</goal>
  200. </goals>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. <plugin>
  205. <groupId>com.mysema.maven</groupId>
  206. <artifactId>apt-maven-plugin</artifactId>
  207. <version>1.1.3</version>
  208. <executions>
  209. <execution>
  210. <phase>generate-sources</phase>
  211. <goals>
  212. <goal>process</goal>
  213. </goals>
  214. <configuration>
  215. <outputDirectory>target/generated-sources</outputDirectory>
  216. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  217. </configuration>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. <!-- 按照测试要求打成zip需要的配置 -->
  222. <!--获取git信息-->
  223. <!-- <plugin>-->
  224. <!-- <groupId>pl.project13.maven</groupId>-->
  225. <!-- <artifactId>git-commit-id-plugin</artifactId>-->
  226. <!-- <executions>-->
  227. <!-- <execution>-->
  228. <!-- <goals>-->
  229. <!-- <goal>revision</goal>-->
  230. <!-- </goals>-->
  231. <!-- </execution>-->
  232. <!-- </executions>-->
  233. <!-- <configuration>-->
  234. <!-- <verbose>true</verbose>-->
  235. <!-- <dateFormat>yyyyMMddHHmm</dateFormat>-->
  236. <!-- <generateGitPropertiesFile>true</generateGitPropertiesFile>-->
  237. <!-- &lt;!&ndash;<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>&ndash;&gt;-->
  238. <!-- <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>-->
  239. <!-- </configuration>-->
  240. <!-- </plugin>-->
  241. <plugin>
  242. <groupId>com.coderplus.maven.plugins</groupId>
  243. <artifactId>copy-rename-maven-plugin</artifactId>
  244. <version>1.0.1</version>
  245. <executions>
  246. <execution>
  247. <id>rename-file</id>
  248. <phase>compile</phase>
  249. <goals>
  250. <goal>rename</goal>
  251. </goals>
  252. <configuration>
  253. <!-- <sourceFile>${project.build.directory}/git.properties</sourceFile>-->
  254. <destinationFile>${project.build.directory}/version.txt</destinationFile>
  255. </configuration>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <!--拷贝资源文件 copy-resources-->
  260. <plugin>
  261. <artifactId>maven-resources-plugin</artifactId>
  262. <executions>
  263. <execution>
  264. <id>copy-resources</id>
  265. <phase>package</phase>
  266. <goals>
  267. <goal>copy-resources</goal>
  268. </goals>
  269. <configuration>
  270. <resources>
  271. <resource>
  272. <directory>src/main/resources/</directory>
  273. <includes>
  274. <include>**/*.yml</include>
  275. </includes>
  276. </resource>
  277. <resource>
  278. <directory>${project.build.directory}</directory>
  279. <includes>
  280. <include>**/version.txt</include>
  281. </includes>
  282. </resource>
  283. </resources>
  284. <outputDirectory>${project.build.directory}/config</outputDirectory>
  285. </configuration>
  286. </execution>
  287. <!--拷贝启动脚本-->
  288. <execution>
  289. <id>copy-version</id>
  290. <phase>package</phase>
  291. <goals>
  292. <goal>copy-resources</goal>
  293. </goals>
  294. <configuration>
  295. <resources>
  296. <resource>
  297. <directory>src/script</directory>
  298. </resource>
  299. </resources>
  300. <outputDirectory>${project.build.directory}</outputDirectory>
  301. </configuration>
  302. </execution>
  303. </executions>
  304. </plugin>
  305. <!-- &lt;!&ndash; 打包压缩 &ndash;&gt;-->
  306. <!-- <plugin>-->
  307. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  308. <!-- <artifactId>maven-assembly-plugin</artifactId>-->
  309. <!-- <executions>-->
  310. <!-- <execution>-->
  311. <!-- <id>make-assembly</id>-->
  312. <!-- &lt;!&ndash; 当执行mvn package时才会打包 &ndash;&gt;-->
  313. <!-- <phase>package</phase>-->
  314. <!-- <goals>-->
  315. <!-- <goal>single</goal>-->
  316. <!-- </goals>-->
  317. <!-- <configuration>-->
  318. <!-- <finalName>-->
  319. <!-- ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}-->
  320. <!-- </finalName>-->
  321. <!-- &lt;!&ndash;不包含assembly id&ndash;&gt;-->
  322. <!-- <appendAssemblyId>false</appendAssemblyId>-->
  323. <!-- &lt;!&ndash;输出路径&ndash;&gt;-->
  324. <!-- &lt;!&ndash;<outputDirectory>../target/co_search-${project.version}</outputDirectory>&ndash;&gt;-->
  325. <!-- <descriptors>-->
  326. <!-- <descriptor>src/script/zip.xml</descriptor>-->
  327. <!-- </descriptors>-->
  328. <!-- </configuration>-->
  329. <!-- </execution>-->
  330. <!-- </executions>-->
  331. <!-- </plugin>-->
  332. </plugins>
  333. </build>
  334. </project>