pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. <groupId>com.persagy</groupId>
  7. <artifactId>dmp</artifactId>
  8. <version>4.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <!--<groupId>com.persagy</groupId>-->
  12. <artifactId>dmp-rwd</artifactId>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.persagy</groupId>
  16. <artifactId>dmp-model</artifactId>
  17. <version>4.0.0</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.persagy</groupId>
  21. <artifactId>dmp-common</artifactId>
  22. <version>4.0.0</version>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.apache.poi</groupId>
  26. <artifactId>poi</artifactId>
  27. </exclusion>
  28. <exclusion>
  29. <groupId>org.apache.poi</groupId>
  30. <artifactId>poi-ooxml</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.persagy</groupId>
  36. <artifactId>dmp-rwd-funcid-parser</artifactId>
  37. <version>4.0.0</version>
  38. <exclusions>
  39. <exclusion>
  40. <groupId>org.apache.poi</groupId>
  41. <artifactId>poi</artifactId>
  42. </exclusion>
  43. <exclusion>
  44. <groupId>org.apache.poi</groupId>
  45. <artifactId>poi-ooxml</artifactId>
  46. </exclusion>
  47. </exclusions>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-web</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-data-jpa</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>mysql</groupId>
  59. <artifactId>mysql-connector-java</artifactId>
  60. <version>8.0.18</version>
  61. </dependency>
  62. <!--<dependency>
  63. <groupId>com.alibaba</groupId>
  64. <artifactId>druid</artifactId>
  65. <version>1.1.20</version>
  66. </dependency>-->
  67. <!-- https://mvnrepository.com/artifact/cn.hutool/hutool-all -->
  68. <dependency>
  69. <groupId>cn.hutool</groupId>
  70. <artifactId>hutool-all</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.alibaba</groupId>
  74. <artifactId>druid-spring-boot-starter</artifactId>
  75. <version>1.1.22</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.apache.poi</groupId>
  79. <artifactId>poi-ooxml</artifactId>
  80. <version>5.0.0</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.poi</groupId>
  84. <artifactId>poi</artifactId>
  85. <version>5.0.0</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.poi</groupId>
  89. <artifactId>poi-ooxml-lite</artifactId>
  90. <version>5.0.0</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.querydsl</groupId>
  94. <artifactId>querydsl-apt</artifactId>
  95. <exclusions>
  96. <exclusion>
  97. <artifactId>javassist</artifactId>
  98. <groupId>org.javassist</groupId>
  99. </exclusion>
  100. <exclusion>
  101. <artifactId>guava</artifactId>
  102. <groupId>com.google.guava</groupId>
  103. </exclusion>
  104. </exclusions>
  105. <!--<exclusions>
  106. <exclusion>
  107. <artifactId>guava</artifactId>
  108. <groupId>com.google.guava</groupId>
  109. </exclusion>
  110. <exclusion>
  111. <artifactId>javassist</artifactId>
  112. <groupId>org.javassist</groupId>
  113. </exclusion>
  114. </exclusions>-->
  115. </dependency>
  116. <dependency>
  117. <groupId>com.querydsl</groupId>
  118. <artifactId>querydsl-sql</artifactId>
  119. <version>${querydsl.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.querydsl</groupId>
  123. <artifactId>querydsl-jpa</artifactId>
  124. </dependency>
  125. <!-- mybatisPlus -->
  126. <dependency>
  127. <groupId>com.baomidou</groupId>
  128. <artifactId>mybatis-plus-boot-starter</artifactId>
  129. <version>3.3.1</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.vladmihalcea</groupId>
  133. <artifactId>hibernate-types-52</artifactId>
  134. <version>2.9.13</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-actuator</artifactId>
  139. </dependency>
  140. <!--<dependency>
  141. <groupId>org.springframework.boot</groupId>
  142. <artifactId>spring-boot-starter-web</artifactId>
  143. </dependency>-->
  144. <!-- 注册中心 -->
  145. <dependency>
  146. <groupId>org.springframework.cloud</groupId>
  147. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  148. <exclusions>
  149. <exclusion>
  150. <artifactId>bcpkix-jdk15on</artifactId>
  151. <groupId>org.bouncycastle</groupId>
  152. </exclusion>
  153. <exclusion>
  154. <artifactId>guava</artifactId>
  155. <groupId>com.google.guava</groupId>
  156. </exclusion>
  157. </exclusions>
  158. <!--<exclusions>
  159. <exclusion>
  160. <artifactId>guava</artifactId>
  161. <groupId>com.google.guava</groupId>
  162. </exclusion>
  163. </exclusions>-->
  164. </dependency>
  165. <!-- 配置中心 -->
  166. <dependency>
  167. <groupId>org.springframework.cloud</groupId>
  168. <artifactId>spring-cloud-starter-config</artifactId>
  169. </dependency>
  170. <!-- rabbitmq -->
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-starter-amqp</artifactId>
  174. </dependency>
  175. <!-- feign -->
  176. <dependency>
  177. <groupId>org.springframework.cloud</groupId>
  178. <artifactId>spring-cloud-starter-openfeign</artifactId>
  179. <exclusions>
  180. <exclusion>
  181. <artifactId>HdrHistogram</artifactId>
  182. <groupId>org.hdrhistogram</groupId>
  183. </exclusion>
  184. </exclusions>
  185. <!--<exclusions>
  186. <exclusion>
  187. <artifactId>HdrHistogram</artifactId>
  188. <groupId>org.hdrhistogram</groupId>
  189. </exclusion>
  190. </exclusions>-->
  191. </dependency>
  192. <!--<dependency>
  193. <groupId>com.persagy</groupId>
  194. <artifactId>fm-package</artifactId>
  195. <type>pom</type>
  196. </dependency>-->
  197. </dependencies>
  198. <build>
  199. <finalName>dmp-rwd</finalName>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. <configuration>
  205. <fork>true</fork>
  206. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  207. </configuration>
  208. <executions>
  209. <execution>
  210. <goals>
  211. <goal>repackage</goal>
  212. </goals>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. <!--
  217. -->
  218. <plugin>
  219. <groupId>com.mysema.maven</groupId>
  220. <artifactId>apt-maven-plugin</artifactId>
  221. <version>1.1.3</version>
  222. <executions>
  223. <execution>
  224. <phase>generate-sources</phase>
  225. <goals>
  226. <goal>process</goal>
  227. </goals>
  228. <configuration>
  229. <outputDirectory>target/generated-sources</outputDirectory>
  230. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  231. </configuration>
  232. </execution>
  233. </executions>
  234. </plugin>
  235. <plugin>
  236. <artifactId>maven-resources-plugin</artifactId>
  237. <executions>
  238. <execution>
  239. <id>copy-resources</id>
  240. <phase>package</phase>
  241. <goals>
  242. <goal>copy-resources</goal>
  243. </goals>
  244. <configuration>
  245. <resources>
  246. <resource>
  247. <directory>src/main/resources/</directory>
  248. <includes>
  249. <include>**/*.yml</include>
  250. <include>**/arthas-boot.jar</include>
  251. <include>**/arthas.zip</include>
  252. </includes>
  253. </resource>
  254. </resources>
  255. <outputDirectory>${project.build.directory}/config</outputDirectory>
  256. </configuration>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. <!--拷贝资源文件 copy-resources
  261. <plugin>
  262. <artifactId>maven-resources-plugin</artifactId>
  263. <executions>
  264. <execution>
  265. <id>copy-resources</id>
  266. <phase>package</phase>
  267. <goals>
  268. <goal>copy-resources</goal>
  269. </goals>
  270. <configuration>
  271. <resources>
  272. <resource>
  273. <directory>src/main/resources/</directory>
  274. <includes>
  275. <include>**/*.yml</include>
  276. </includes>
  277. </resource>
  278. <resource>
  279. <directory>${project.build.directory}</directory>
  280. <includes>
  281. <include>**/version.txt</include>
  282. </includes>
  283. </resource>
  284. </resources>
  285. <outputDirectory>${project.build.directory}/config</outputDirectory>
  286. </configuration>
  287. </execution>
  288. &lt;!&ndash;&lt;!&ndash;拷贝启动脚本&ndash;&gt;
  289. <execution>
  290. <id>copy-version</id>
  291. <phase>package</phase>
  292. <goals>
  293. <goal>copy-resources</goal>
  294. </goals>
  295. <configuration>
  296. <resources>
  297. <resource>
  298. <directory>src/script</directory>
  299. </resource>
  300. </resources>
  301. <outputDirectory>${project.build.directory}</outputDirectory>
  302. </configuration>
  303. </execution>&ndash;&gt;
  304. </executions>
  305. </plugin>-->
  306. <!--&lt;!&ndash; 按照测试要求打成zip需要的配置 &ndash;&gt;
  307. &lt;!&ndash;获取git信息&ndash;&gt;
  308. <plugin>
  309. <groupId>pl.project13.maven</groupId>
  310. <artifactId>git-commit-id-plugin</artifactId>
  311. <executions>
  312. <execution>
  313. <goals>
  314. <goal>revision</goal>
  315. </goals>
  316. </execution>
  317. </executions>
  318. <configuration>
  319. <verbose>true</verbose>
  320. <dateFormat>yyyyMMddHHmm</dateFormat>
  321. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  322. &lt;!&ndash;<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>&ndash;&gt;
  323. <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
  324. </configuration>
  325. </plugin>
  326. &lt;!&ndash; 打包压缩 &ndash;&gt;
  327. <plugin>
  328. <groupId>org.apache.maven.plugins</groupId>
  329. <artifactId>maven-assembly-plugin</artifactId>
  330. <executions>
  331. <execution>
  332. <id>make-assembly</id>
  333. &lt;!&ndash; 当执行mvn package时才会打包 &ndash;&gt;
  334. <phase>package</phase>
  335. <goals>
  336. <goal>single</goal>
  337. </goals>
  338. <configuration>
  339. <finalName>
  340. ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
  341. </finalName>
  342. &lt;!&ndash;不包含assembly id&ndash;&gt;
  343. <appendAssemblyId>false</appendAssemblyId>
  344. &lt;!&ndash;输出路径&ndash;&gt;
  345. &lt;!&ndash;<outputDirectory>../target/co_search-${project.version}</outputDirectory>&ndash;&gt;
  346. <descriptors>
  347. <descriptor>../script/zip.xml</descriptor>
  348. </descriptors>
  349. </configuration>
  350. </execution>
  351. </executions>
  352. </plugin>-->
  353. </plugins>
  354. </build>
  355. </project>