pom.xml 15 KB

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