pom.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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>dc-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. <dc.version>1.0.0</dc.version>
  34. <platform.version>1.0.0</platform.version>
  35. <mybatis-plus.version>3.3.1</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>27.0.1-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. <druid.version>1.1.22</druid.version>
  49. <hutool.version>5.5.8</hutool.version>
  50. <!-- Plugins -->
  51. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  52. <spring-boot-maven-plugin.version>2.4.3</spring-boot-maven-plugin.version>
  53. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  54. <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
  55. <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
  56. </properties>
  57. <dependencyManagement>
  58. <dependencies>
  59. <dependency>
  60. <groupId>com.persagy</groupId>
  61. <artifactId>dc-common</artifactId>
  62. <version>${dc.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.persagy</groupId>
  66. <artifactId>dc-server</artifactId>
  67. <version>${dc.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.persagy</groupId>
  71. <artifactId>dc-mybatis</artifactId>
  72. <version>${dc.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.persagy</groupId>
  76. <artifactId>dc-file-starter</artifactId>
  77. <version>${dc.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.persagy</groupId>
  81. <artifactId>dc-amqp-starter</artifactId>
  82. <version>${dc.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.persagy</groupId>
  86. <artifactId>dc-digital-starter</artifactId>
  87. <version>${dc.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.persagy</groupId>
  91. <artifactId>integrated-common-core</artifactId>
  92. <version>${platform.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.persagy</groupId>
  96. <artifactId>integrated-common-security</artifactId>
  97. <version>${platform.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.persagy</groupId>
  101. <artifactId>integrated-log-spring-boot-starter</artifactId>
  102. <version>${platform.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.persagy</groupId>
  106. <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
  107. <version>${platform.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.persagy</groupId>
  111. <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
  112. <version>${platform.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.persagy</groupId>
  116. <artifactId>integrated-redis-spring-boot-starter</artifactId>
  117. <version>${platform.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.persagy</groupId>
  121. <artifactId>integrated-config-client</artifactId>
  122. <version>${platform.version}</version>
  123. </dependency>
  124. <!-- mybatis plus -->
  125. <dependency>
  126. <groupId>com.baomidou</groupId>
  127. <artifactId>mybatis-plus-boot-starter</artifactId>
  128. <version>${mybatis-plus.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.baomidou</groupId>
  132. <artifactId>mybatis-plus-annotation</artifactId>
  133. <version>${mybatis-plus.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.baomidou</groupId>
  137. <artifactId>mybatis-plus-extension</artifactId>
  138. <version>${mybatis-plus.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.baomidou</groupId>
  142. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  143. <version>${dynamic-datasource.version}</version>
  144. </dependency>
  145. <!-- mapstruct 优雅的进行bean与dto的转换 -->
  146. <dependency>
  147. <groupId>org.mapstruct</groupId>
  148. <artifactId>mapstruct-jdk8</artifactId>
  149. <version>${mapstruct.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.mapstruct</groupId>
  153. <artifactId>mapstruct-processor</artifactId>
  154. <version>${mapstruct.version}</version>
  155. </dependency>
  156. <!-- alibaba druid -->
  157. <dependency>
  158. <groupId>com.alibaba</groupId>
  159. <artifactId>druid-spring-boot-starter</artifactId>
  160. <version>${druid.version}</version>
  161. </dependency>
  162. <!-- 以下是数据库连接池版本管理,建议使用provided方式引入-->
  163. <dependency>
  164. <groupId>org.apache.tomcat</groupId>
  165. <artifactId>tomcat-jdbc</artifactId>
  166. <version>${tomcat-jdbc.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.zaxxer</groupId>
  170. <artifactId>HikariCP</artifactId>
  171. <version>${HikariCP.version}</version>
  172. </dependency>
  173. <!-- 以下是数据库driver版本管理,建议使用provided方式引入 -->
  174. <dependency>
  175. <groupId>mysql</groupId>
  176. <artifactId>mysql-connector-java</artifactId>
  177. <version>${mysql.version}</version>
  178. </dependency>
  179. <!-- 以下是commons工具版本管理 -->
  180. <dependency>
  181. <groupId>com.google.guava</groupId>
  182. <artifactId>guava</artifactId>
  183. <version>${guava.version}</version>
  184. </dependency>
  185. <!-- 以下是springCloud版本管理 -->
  186. <dependency>
  187. <groupId>org.springframework.cloud</groupId>
  188. <artifactId>spring-cloud-dependencies</artifactId>
  189. <version>${spring-cloud-dependencies.version}</version>
  190. <type>pom</type>
  191. <scope>import</scope>
  192. </dependency>
  193. <!-- 以下是spring版本管理 -->
  194. <dependency>
  195. <groupId>org.springframework</groupId>
  196. <artifactId>spring-context</artifactId>
  197. <version>${spring.version}</version>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.springframework</groupId>
  201. <artifactId>spring-web</artifactId>
  202. <version>${spring.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>org.springframework</groupId>
  206. <artifactId>spring-tx</artifactId>
  207. <version>${spring.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.springframework</groupId>
  211. <artifactId>spring-aop</artifactId>
  212. <version>${spring.version}</version>
  213. </dependency>
  214. <dependency>
  215. <groupId>org.springframework</groupId>
  216. <artifactId>spring-test</artifactId>
  217. <version>${spring.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.springframework</groupId>
  221. <artifactId>spring-beans</artifactId>
  222. <version>${spring.version}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.springframework</groupId>
  226. <artifactId>spring-webmvc</artifactId>
  227. <version>${spring.version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>org.springframework</groupId>
  231. <artifactId>spring-context-support</artifactId>
  232. <version>${spring.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.springframework</groupId>
  236. <artifactId>spring-core</artifactId>
  237. <version>${spring.version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.springframework</groupId>
  241. <artifactId>spring-expression</artifactId>
  242. <version>${spring.version}</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>org.springframework</groupId>
  246. <artifactId>spring-jcl</artifactId>
  247. <version>${spring.version}</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.springframework</groupId>
  251. <artifactId>spring-jdbc</artifactId>
  252. <version>${spring.version}</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.springframework</groupId>
  256. <artifactId>spring-messaging</artifactId>
  257. <version>${spring.version}</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>org.springframework</groupId>
  261. <artifactId>spring-oxm</artifactId>
  262. <version>${spring.version}</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.springframework</groupId>
  266. <artifactId>spring-webflux</artifactId>
  267. <version>${spring.version}</version>
  268. </dependency>
  269. <!-- 以下是spring data版本管理 -->
  270. <dependency>
  271. <groupId>org.springframework.data</groupId>
  272. <artifactId>spring-data-commons</artifactId>
  273. <version>${spring-data.version}</version>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.springframework.data</groupId>
  277. <artifactId>spring-data-redis</artifactId>
  278. <version>${spring-data.version}</version>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.springframework.data</groupId>
  282. <artifactId>spring-data-jpa</artifactId>
  283. <version>${spring-data-jpa.version}</version>
  284. </dependency>
  285. <!-- hutool -->
  286. <dependency>
  287. <groupId>cn.hutool</groupId>
  288. <artifactId>hutool-all</artifactId>
  289. <version>${hutool.version}</version>
  290. </dependency>
  291. <dependency>
  292. <groupId>commons-lang</groupId>
  293. <artifactId>commons-lang</artifactId>
  294. <version>${lang.version}</version>
  295. </dependency>
  296. <!-- gson json,java对象互转 -->
  297. <dependency>
  298. <groupId>com.google.code.gson</groupId>
  299. <artifactId>gson</artifactId>
  300. <version>${gson.version}</version>
  301. </dependency>
  302. </dependencies>
  303. </dependencyManagement>
  304. <!-- 插件配置 -->
  305. <build>
  306. <finalName>${project.artifactId}</finalName>
  307. <pluginManagement>
  308. <plugins>
  309. <!-- compiler插件, 设定JDK版本 -->
  310. <plugin>
  311. <groupId>org.apache.maven.plugins</groupId>
  312. <artifactId>maven-compiler-plugin</artifactId>
  313. <version>${maven-compiler-plugin.version}</version>
  314. <configuration>
  315. <source>${java.version}</source>
  316. <target>${java.version}</target>
  317. <encoding>UTF-8</encoding>
  318. <skip>true</skip>
  319. <showWarnings>true</showWarnings>
  320. </configuration>
  321. </plugin>
  322. <!-- 不执行单元测试,但会编译测试类并在target/test-classes目录下生成相应的class -->
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-surefire-plugin</artifactId>
  326. <version>${maven-surefire-plugin.version}</version>
  327. <configuration>
  328. <skipTests>true</skipTests>
  329. </configuration>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.springframework.boot</groupId>
  333. <artifactId>spring-boot-maven-plugin</artifactId>
  334. <version>${spring-boot-maven-plugin.version}</version>
  335. </plugin>
  336. <plugin>
  337. <groupId>org.apache.maven.plugins</groupId>
  338. <artifactId>maven-source-plugin</artifactId>
  339. <version>${maven-source-plugin.version}</version>
  340. <configuration>
  341. <attach>true</attach>
  342. </configuration>
  343. <executions>
  344. <execution>
  345. <phase>compile</phase>
  346. <goals>
  347. <goal>jar</goal>
  348. </goals>
  349. </execution>
  350. </executions>
  351. </plugin>
  352. <!-- resource插件 -->
  353. <plugin>
  354. <groupId>org.apache.maven.plugins</groupId>
  355. <artifactId>maven-resources-plugin</artifactId>
  356. <version>${maven-resources-plugin.version}</version>
  357. <executions>
  358. <execution>
  359. <id>copy-resources</id>
  360. <phase>package</phase>
  361. <goals>
  362. <goal>copy-resources</goal>
  363. </goals>
  364. <configuration>
  365. <resources>
  366. <resource>
  367. <directory>src/main/resources/</directory>
  368. <includes>
  369. <include>**/*.yml</include>
  370. </includes>
  371. </resource>
  372. <resource>
  373. <directory>${project.build.directory}</directory>
  374. <includes>
  375. <include>**/version.txt</include>
  376. </includes>
  377. </resource>
  378. </resources>
  379. <outputDirectory>${project.build.directory}/config</outputDirectory>
  380. </configuration>
  381. </execution>
  382. <!--拷贝启动脚本-->
  383. <execution>
  384. <id>copy-version</id>
  385. <phase>package</phase>
  386. <goals>
  387. <goal>copy-resources</goal>
  388. </goals>
  389. <configuration>
  390. <resources>
  391. <resource>
  392. <directory>src/script</directory>
  393. </resource>
  394. </resources>
  395. <outputDirectory>${project.build.directory}</outputDirectory>
  396. </configuration>
  397. </execution>
  398. </executions>
  399. </plugin>
  400. </plugins>
  401. </pluginManagement>
  402. <plugins>
  403. <plugin>
  404. <groupId>org.apache.maven.plugins</groupId>
  405. <artifactId>maven-source-plugin</artifactId>
  406. </plugin>
  407. </plugins>
  408. </build>
  409. </project>