pom.xml 23 KB

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