pom.xml 24 KB

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