pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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. <version>2.7.1</version>
  205. <configuration>
  206. <fork>true</fork>
  207. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  208. </configuration>
  209. <executions>
  210. <execution>
  211. <goals>
  212. <goal>repackage</goal>
  213. </goals>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <!--
  218. -->
  219. <plugin>
  220. <groupId>com.mysema.maven</groupId>
  221. <artifactId>apt-maven-plugin</artifactId>
  222. <version>1.1.3</version>
  223. <executions>
  224. <execution>
  225. <phase>generate-sources</phase>
  226. <goals>
  227. <goal>process</goal>
  228. </goals>
  229. <configuration>
  230. <outputDirectory>target/generated-sources</outputDirectory>
  231. <processor>com.querydsl.apt.jpa.JPAAnnotationProcessor</processor>
  232. </configuration>
  233. </execution>
  234. </executions>
  235. </plugin>
  236. <plugin>
  237. <artifactId>maven-resources-plugin</artifactId>
  238. <executions>
  239. <execution>
  240. <id>copy-resources</id>
  241. <phase>package</phase>
  242. <goals>
  243. <goal>copy-resources</goal>
  244. </goals>
  245. <configuration>
  246. <resources>
  247. <resource>
  248. <directory>src/main/resources/</directory>
  249. <includes>
  250. <include>**/*.yml</include>
  251. <include>**/arthas-boot.jar</include>
  252. <include>**/arthas.zip</include>
  253. </includes>
  254. </resource>
  255. </resources>
  256. <outputDirectory>${project.build.directory}/config</outputDirectory>
  257. </configuration>
  258. </execution>
  259. </executions>
  260. </plugin>
  261. <!--拷贝资源文件 copy-resources
  262. <plugin>
  263. <artifactId>maven-resources-plugin</artifactId>
  264. <executions>
  265. <execution>
  266. <id>copy-resources</id>
  267. <phase>package</phase>
  268. <goals>
  269. <goal>copy-resources</goal>
  270. </goals>
  271. <configuration>
  272. <resources>
  273. <resource>
  274. <directory>src/main/resources/</directory>
  275. <includes>
  276. <include>**/*.yml</include>
  277. </includes>
  278. </resource>
  279. <resource>
  280. <directory>${project.build.directory}</directory>
  281. <includes>
  282. <include>**/version.txt</include>
  283. </includes>
  284. </resource>
  285. </resources>
  286. <outputDirectory>${project.build.directory}/config</outputDirectory>
  287. </configuration>
  288. </execution>
  289. &lt;!&ndash;&lt;!&ndash;拷贝启动脚本&ndash;&gt;
  290. <execution>
  291. <id>copy-version</id>
  292. <phase>package</phase>
  293. <goals>
  294. <goal>copy-resources</goal>
  295. </goals>
  296. <configuration>
  297. <resources>
  298. <resource>
  299. <directory>src/script</directory>
  300. </resource>
  301. </resources>
  302. <outputDirectory>${project.build.directory}</outputDirectory>
  303. </configuration>
  304. </execution>&ndash;&gt;
  305. </executions>
  306. </plugin>-->
  307. <!--&lt;!&ndash; 按照测试要求打成zip需要的配置 &ndash;&gt;
  308. &lt;!&ndash;获取git信息&ndash;&gt;
  309. <plugin>
  310. <groupId>pl.project13.maven</groupId>
  311. <artifactId>git-commit-id-plugin</artifactId>
  312. <executions>
  313. <execution>
  314. <goals>
  315. <goal>revision</goal>
  316. </goals>
  317. </execution>
  318. </executions>
  319. <configuration>
  320. <verbose>true</verbose>
  321. <dateFormat>yyyyMMddHHmm</dateFormat>
  322. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  323. &lt;!&ndash;<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>&ndash;&gt;
  324. <generateGitPropertiesFilename>target/git.properties</generateGitPropertiesFilename>
  325. </configuration>
  326. </plugin>
  327. &lt;!&ndash; 打包压缩 &ndash;&gt;
  328. <plugin>
  329. <groupId>org.apache.maven.plugins</groupId>
  330. <artifactId>maven-assembly-plugin</artifactId>
  331. <executions>
  332. <execution>
  333. <id>make-assembly</id>
  334. &lt;!&ndash; 当执行mvn package时才会打包 &ndash;&gt;
  335. <phase>package</phase>
  336. <goals>
  337. <goal>single</goal>
  338. </goals>
  339. <configuration>
  340. <finalName>
  341. ${project.artifactId}_${git.commit.time}_git_${git.branch}_${git.commit.id.abbrev}
  342. </finalName>
  343. &lt;!&ndash;不包含assembly id&ndash;&gt;
  344. <appendAssemblyId>false</appendAssemblyId>
  345. &lt;!&ndash;输出路径&ndash;&gt;
  346. &lt;!&ndash;<outputDirectory>../target/co_search-${project.version}</outputDirectory>&ndash;&gt;
  347. <descriptors>
  348. <descriptor>../script/zip.xml</descriptor>
  349. </descriptors>
  350. </configuration>
  351. </execution>
  352. </executions>
  353. </plugin>-->
  354. </plugins>
  355. </build>
  356. </project>