pom.xml 13 KB

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