pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.persagy</groupId>
  7. <artifactId>dmp-parent</artifactId>
  8. <version>1.0.0</version>
  9. <packaging>pom</packaging>
  10. <repositories>
  11. <repository>
  12. <id>integrated</id>
  13. <name>releases Repository</name>
  14. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  15. </repository>
  16. </repositories>
  17. <distributionManagement>
  18. <repository>
  19. <id>persagy</id>
  20. <name>releases Repository</name>
  21. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  22. <layout>default</layout>
  23. </repository>
  24. </distributionManagement>
  25. <parent>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-parent</artifactId>
  28. <version>2.1.14.RELEASE</version>
  29. <relativePath/>
  30. </parent>
  31. <!-- 版本管理 -->
  32. <properties>
  33. <dmp.version>1.0.0</dmp.version>
  34. <platform.version>1.0.0</platform.version>
  35. <mybatis-plus.version>3.4.2</mybatis-plus.version>
  36. <dynamic-datasource.version>3.3.2</dynamic-datasource.version>
  37. <tomcat-jdbc.version>9.0.31</tomcat-jdbc.version>
  38. <HikariCP.version>3.2.0</HikariCP.version>
  39. <mysql.version>8.0.15</mysql.version>
  40. <guava.version>30.0-jre</guava.version>
  41. <spring.version>5.1.15.RELEASE</spring.version>
  42. <spring-cloud-dependencies.version>Greenwich.SR6</spring-cloud-dependencies.version>
  43. <spring-data.version>2.1.17.RELEASE</spring-data.version>
  44. <spring-data-jpa.version>2.0.11.RELEASE</spring-data-jpa.version>
  45. <mapstruct.version>1.2.0.Final</mapstruct.version>
  46. <lang.version>2.5</lang.version>
  47. <gson.version>2.8.6</gson.version>
  48. <fastjson.version>1.2.75</fastjson.version>
  49. <druid.version>1.1.22</druid.version>
  50. <hutool.version>5.5.8</hutool.version>
  51. <!-- Minio -->
  52. <minio.version>8.3.0</minio.version>
  53. <okhttp.version>4.8.1</okhttp.version>
  54. <kotlin.version>1.3.70</kotlin.version>
  55. <!-- Plugins -->
  56. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  57. <spring-boot-maven-plugin.version>2.4.3</spring-boot-maven-plugin.version>
  58. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  59. <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
  60. <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
  61. <xstream.version>1.4.18</xstream.version>
  62. <log4j-api.version>2.15.0</log4j-api.version>
  63. <hadoop.version>2.5.1</hadoop.version>
  64. <log4j-over-slf4j>1.7.32</log4j-over-slf4j>
  65. </properties>
  66. <dependencyManagement>
  67. <dependencies>
  68. <dependency>
  69. <groupId>com.persagy</groupId>
  70. <artifactId>dmp-common</artifactId>
  71. <version>${dmp.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.persagy</groupId>
  75. <artifactId>dmp-server</artifactId>
  76. <version>${dmp.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.persagy</groupId>
  80. <artifactId>dmp-mybatis</artifactId>
  81. <version>${dmp.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.persagy</groupId>
  85. <artifactId>dmp-file-starter</artifactId>
  86. <version>${dmp.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.persagy</groupId>
  90. <artifactId>dmp-amqp-starter</artifactId>
  91. <version>${dmp.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.persagy</groupId>
  95. <artifactId>dmp-digital-starter</artifactId>
  96. <version>${dmp.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.persagy</groupId>
  100. <artifactId>dmp-auth</artifactId>
  101. <version>${dmp.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.persagy</groupId>
  105. <artifactId>integrated-common-core</artifactId>
  106. <version>${platform.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.persagy</groupId>
  110. <artifactId>integrated-common-security</artifactId>
  111. <version>${platform.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.persagy</groupId>
  115. <artifactId>integrated-log-spring-boot-starter</artifactId>
  116. <version>${platform.version}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.apache.logging.log4j</groupId>
  120. <artifactId>log4j-api</artifactId>
  121. <version>${log4j-api.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.persagy</groupId>
  125. <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
  126. <version>${platform.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.persagy</groupId>
  130. <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
  131. <version>${platform.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.persagy</groupId>
  135. <artifactId>integrated-redis-spring-boot-starter</artifactId>
  136. <version>${platform.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.persagy</groupId>
  140. <artifactId>integrated-config-client</artifactId>
  141. <version>${platform.version}</version>
  142. </dependency>
  143. <!-- mybatis plus -->
  144. <dependency>
  145. <groupId>com.baomidou</groupId>
  146. <artifactId>mybatis-plus-boot-starter</artifactId>
  147. <version>${mybatis-plus.version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.baomidou</groupId>
  151. <artifactId>mybatis-plus-annotation</artifactId>
  152. <version>${mybatis-plus.version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.baomidou</groupId>
  156. <artifactId>mybatis-plus-extension</artifactId>
  157. <version>${mybatis-plus.version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.baomidou</groupId>
  161. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  162. <version>${dynamic-datasource.version}</version>
  163. </dependency>
  164. <!-- mapstruct 优雅的进行bean与dto的转换 -->
  165. <dependency>
  166. <groupId>org.mapstruct</groupId>
  167. <artifactId>mapstruct-jdk8</artifactId>
  168. <version>${mapstruct.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.mapstruct</groupId>
  172. <artifactId>mapstruct-processor</artifactId>
  173. <version>${mapstruct.version}</version>
  174. </dependency>
  175. <!-- alibaba druid -->
  176. <dependency>
  177. <groupId>com.alibaba</groupId>
  178. <artifactId>druid-spring-boot-starter</artifactId>
  179. <version>${druid.version}</version>
  180. </dependency>
  181. <!-- 以下是数据库连接池版本管理,建议使用provided方式引入-->
  182. <dependency>
  183. <groupId>org.apache.tomcat</groupId>
  184. <artifactId>tomcat-jdbc</artifactId>
  185. <version>${tomcat-jdbc.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.zaxxer</groupId>
  189. <artifactId>HikariCP</artifactId>
  190. <version>${HikariCP.version}</version>
  191. </dependency>
  192. <!-- 以下是数据库driver版本管理,建议使用provided方式引入 -->
  193. <dependency>
  194. <groupId>mysql</groupId>
  195. <artifactId>mysql-connector-java</artifactId>
  196. <version>${mysql.version}</version>
  197. </dependency>
  198. <!-- 以下是commons工具版本管理 -->
  199. <dependency>
  200. <groupId>com.google.guava</groupId>
  201. <artifactId>guava</artifactId>
  202. <version>${guava.version}</version>
  203. </dependency>
  204. <!-- 以下是springCloud版本管理 -->
  205. <dependency>
  206. <groupId>org.springframework.cloud</groupId>
  207. <artifactId>spring-cloud-dependencies</artifactId>
  208. <version>${spring-cloud-dependencies.version}</version>
  209. <type>pom</type>
  210. <scope>import</scope>
  211. </dependency>
  212. <!-- 以下是spring版本管理 -->
  213. <dependency>
  214. <groupId>org.springframework</groupId>
  215. <artifactId>spring-context</artifactId>
  216. <version>${spring.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.springframework</groupId>
  220. <artifactId>spring-web</artifactId>
  221. <version>${spring.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.springframework</groupId>
  225. <artifactId>spring-tx</artifactId>
  226. <version>${spring.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.springframework</groupId>
  230. <artifactId>spring-aop</artifactId>
  231. <version>${spring.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.springframework</groupId>
  235. <artifactId>spring-test</artifactId>
  236. <version>${spring.version}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.springframework</groupId>
  240. <artifactId>spring-beans</artifactId>
  241. <version>${spring.version}</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.springframework</groupId>
  245. <artifactId>spring-webmvc</artifactId>
  246. <version>${spring.version}</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.springframework</groupId>
  250. <artifactId>spring-context-support</artifactId>
  251. <version>${spring.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.springframework</groupId>
  255. <artifactId>spring-core</artifactId>
  256. <version>${spring.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.springframework</groupId>
  260. <artifactId>spring-expression</artifactId>
  261. <version>${spring.version}</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.springframework</groupId>
  265. <artifactId>spring-jcl</artifactId>
  266. <version>${spring.version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.springframework</groupId>
  270. <artifactId>spring-jdbc</artifactId>
  271. <version>${spring.version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>org.springframework</groupId>
  275. <artifactId>spring-messaging</artifactId>
  276. <version>${spring.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>org.springframework</groupId>
  280. <artifactId>spring-oxm</artifactId>
  281. <version>${spring.version}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.springframework</groupId>
  285. <artifactId>spring-webflux</artifactId>
  286. <version>${spring.version}</version>
  287. </dependency>
  288. <!-- 以下是spring data版本管理 -->
  289. <dependency>
  290. <groupId>org.springframework.data</groupId>
  291. <artifactId>spring-data-commons</artifactId>
  292. <version>${spring-data.version}</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>org.springframework.data</groupId>
  296. <artifactId>spring-data-redis</artifactId>
  297. <version>${spring-data.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.springframework.data</groupId>
  301. <artifactId>spring-data-jpa</artifactId>
  302. <version>${spring-data-jpa.version}</version>
  303. </dependency>
  304. <!-- hutool -->
  305. <dependency>
  306. <groupId>cn.hutool</groupId>
  307. <artifactId>hutool-all</artifactId>
  308. <version>${hutool.version}</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>commons-lang</groupId>
  312. <artifactId>commons-lang</artifactId>
  313. <version>${lang.version}</version>
  314. </dependency>
  315. <!-- gson json,java对象互转 -->
  316. <dependency>
  317. <groupId>com.google.code.gson</groupId>
  318. <artifactId>gson</artifactId>
  319. <version>${gson.version}</version>
  320. </dependency>
  321. <dependency>
  322. <groupId>com.alibaba</groupId>
  323. <artifactId>fastjson</artifactId>
  324. <version>${fastjson.version}</version>
  325. </dependency>
  326. <!-- Minio -->
  327. <dependency>
  328. <groupId>io.minio</groupId>
  329. <artifactId>minio</artifactId>
  330. <version>${minio.version}</version>
  331. </dependency>
  332. <!--hadoop-->
  333. <dependency>
  334. <groupId>org.apache.hadoop</groupId>
  335. <artifactId>hadoop-common</artifactId>
  336. <version>${hadoop.version}</version>
  337. </dependency>
  338. <dependency>
  339. <groupId>org.apache.hadoop</groupId>
  340. <artifactId>hadoop-hdfs</artifactId>
  341. <version>${hadoop.version}</version>
  342. </dependency>
  343. <dependency>
  344. <groupId>org.slf4j</groupId>
  345. <artifactId>log4j-over-slf4j</artifactId>
  346. <version>${log4j-over-slf4j}</version>
  347. </dependency>
  348. <dependency>
  349. <groupId>com.squareup.okhttp3</groupId>
  350. <artifactId>okhttp</artifactId>
  351. <version>${okhttp.version}</version>
  352. </dependency>
  353. <dependency>
  354. <groupId>org.jetbrains.kotlin</groupId>
  355. <artifactId>kotlin-stdlib-common</artifactId>
  356. <version>${kotlin.version}</version>
  357. </dependency>
  358. <!-- 阿里云扫描漏洞要求版本需>=1.4.18 -->
  359. <dependency>
  360. <groupId>com.thoughtworks.xstream</groupId>
  361. <artifactId>xstream</artifactId>
  362. <version>${xstream.version}</version>
  363. </dependency>
  364. </dependencies>
  365. </dependencyManagement>
  366. <!-- 插件配置 -->
  367. <build>
  368. <finalName>${project.artifactId}</finalName>
  369. <pluginManagement>
  370. <plugins>
  371. <!-- compiler插件, 设定JDK版本 -->
  372. <plugin>
  373. <groupId>org.apache.maven.plugins</groupId>
  374. <artifactId>maven-compiler-plugin</artifactId>
  375. <version>${maven-compiler-plugin.version}</version>
  376. <configuration>
  377. <source>${java.version}</source>
  378. <target>${java.version}</target>
  379. <encoding>UTF-8</encoding>
  380. <skip>true</skip>
  381. <showWarnings>true</showWarnings>
  382. </configuration>
  383. </plugin>
  384. <!-- 不执行单元测试,但会编译测试类并在target/test-classes目录下生成相应的class -->
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-surefire-plugin</artifactId>
  388. <version>${maven-surefire-plugin.version}</version>
  389. <configuration>
  390. <skipTests>true</skipTests>
  391. </configuration>
  392. </plugin>
  393. <plugin>
  394. <groupId>org.springframework.boot</groupId>
  395. <artifactId>spring-boot-maven-plugin</artifactId>
  396. <version>${spring-boot-maven-plugin.version}</version>
  397. </plugin>
  398. <plugin>
  399. <groupId>org.apache.maven.plugins</groupId>
  400. <artifactId>maven-source-plugin</artifactId>
  401. <version>${maven-source-plugin.version}</version>
  402. <configuration>
  403. <attach>true</attach>
  404. </configuration>
  405. <executions>
  406. <execution>
  407. <phase>compile</phase>
  408. <goals>
  409. <goal>jar</goal>
  410. </goals>
  411. </execution>
  412. </executions>
  413. </plugin>
  414. <!-- resource插件 -->
  415. <plugin>
  416. <groupId>org.apache.maven.plugins</groupId>
  417. <artifactId>maven-resources-plugin</artifactId>
  418. <version>${maven-resources-plugin.version}</version>
  419. <executions>
  420. <execution>
  421. <id>copy-resources</id>
  422. <phase>package</phase>
  423. <goals>
  424. <goal>copy-resources</goal>
  425. </goals>
  426. <configuration>
  427. <resources>
  428. <resource>
  429. <directory>src/main/resources/</directory>
  430. <includes>
  431. <include>**/*.yml</include>
  432. </includes>
  433. </resource>
  434. <resource>
  435. <directory>${project.build.directory}</directory>
  436. <includes>
  437. <include>**/version.txt</include>
  438. </includes>
  439. </resource>
  440. </resources>
  441. <outputDirectory>${project.build.directory}/config</outputDirectory>
  442. </configuration>
  443. </execution>
  444. <!--拷贝启动脚本-->
  445. <execution>
  446. <id>copy-version</id>
  447. <phase>package</phase>
  448. <goals>
  449. <goal>copy-resources</goal>
  450. </goals>
  451. <configuration>
  452. <resources>
  453. <resource>
  454. <directory>src/script</directory>
  455. </resource>
  456. </resources>
  457. <outputDirectory>${project.build.directory}</outputDirectory>
  458. </configuration>
  459. </execution>
  460. </executions>
  461. </plugin>
  462. </plugins>
  463. </pluginManagement>
  464. <plugins>
  465. <plugin>
  466. <groupId>org.apache.maven.plugins</groupId>
  467. <artifactId>maven-source-plugin</artifactId>
  468. </plugin>
  469. </plugins>
  470. </build>
  471. </project>