pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.persagy</groupId>
  5. <artifactId>apm-parent</artifactId>
  6. <version>v1.3.0-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  8. <repositories>
  9. <repository>
  10. <id>integrated</id>
  11. <name>releases Repository</name>
  12. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  13. </repository>
  14. <repository>
  15. <id>Snapshots</id>
  16. <name>snapshot</name>
  17. <url>http://47.93.132.139:8081/nexus/content/repositories/snapshots/</url>
  18. </repository>
  19. <repository>
  20. <id>Releases</id>
  21. <name>persagy</name>
  22. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy</url>
  23. </repository>
  24. <repository>
  25. <id>persagy2021-yushu-public</id>
  26. <name>public</name>
  27. <url>https://persagy2021-maven.pkg.coding.net/repository/yushu/public/</url>
  28. </repository>
  29. </repositories>
  30. <parent>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-parent</artifactId>
  33. <version>2.4.12</version>
  34. <relativePath />
  35. </parent>
  36. <!-- 版本管理 -->
  37. <properties>
  38. <passcloud.version>1.0.8</passcloud.version>
  39. <apm.version>v1.3.0-SNAPSHOT</apm.version>
  40. <platform.version>1.0.0</platform.version>
  41. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  42. <dynamic-datasource.version>3.3.2</dynamic-datasource.version>
  43. <tomcat-jdbc.version>9.0.31</tomcat-jdbc.version>
  44. <HikariCP.version>3.2.0</HikariCP.version>
  45. <mysql.version>8.0.15</mysql.version>
  46. <guava.version>27.0.1-jre</guava.version>
  47. <spring.version>5.3.12</spring.version>
  48. <spring-data.version>2.4.4</spring-data.version>
  49. <mapstruct.version>1.2.0.Final</mapstruct.version>
  50. <lang.version>2.5</lang.version>
  51. <gson.version>2.8.6</gson.version>
  52. <druid.version>1.1.22</druid.version>
  53. <!-- Plugins -->
  54. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  55. <spring-boot-maven-plugin.version>2.4.3</spring-boot-maven-plugin.version>
  56. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  57. <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
  58. </properties>
  59. <dependencyManagement>
  60. <dependencies>
  61. <dependency>
  62. <groupId>com.persagy</groupId>
  63. <artifactId>starter-cloud</artifactId>
  64. <version>${passcloud.version}</version>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.persagy</groupId>
  68. <artifactId>starter-web</artifactId>
  69. <version>${passcloud.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.persagy</groupId>
  73. <artifactId>starter-redis</artifactId>
  74. <version>${passcloud.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.persagy</groupId>
  78. <artifactId>starter-databases</artifactId>
  79. <version>${passcloud.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.persagy</groupId>
  83. <artifactId>starter-excel</artifactId>
  84. <version>${passcloud.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>com.persagy</groupId>
  88. <artifactId>starter-mybatis</artifactId>
  89. <version>${passcloud.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.persagy</groupId>
  93. <artifactId>starter-redis</artifactId>
  94. <version>${passcloud.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>com.persagy</groupId>
  98. <artifactId>starter-rabbitmq</artifactId>
  99. <version>${passcloud.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.persagy</groupId>
  103. <artifactId>apm-server</artifactId>
  104. <version>${apm.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.persagy</groupId>
  108. <artifactId>apm-common</artifactId>
  109. <version>${apm.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.persagy</groupId>
  113. <artifactId>apm-mybatis</artifactId>
  114. <version>${apm.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.persagy</groupId>
  118. <artifactId>apm-translate</artifactId>
  119. <version>${apm.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.persagy</groupId>
  123. <artifactId>integrated-common-core</artifactId>
  124. <version>${platform.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.persagy</groupId>
  128. <artifactId>integrated-common-security</artifactId>
  129. <version>${platform.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.persagy</groupId>
  133. <artifactId>integrated-log-spring-boot-starter</artifactId>
  134. <version>${platform.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.persagy</groupId>
  138. <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
  139. <version>${platform.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.persagy</groupId>
  143. <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
  144. <version>${platform.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.persagy</groupId>
  148. <artifactId>integrated-redis-spring-boot-starter</artifactId>
  149. <version>${platform.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.persagy</groupId>
  153. <artifactId>integrated-config-client</artifactId>
  154. <version>${platform.version}</version>
  155. </dependency>
  156. <!-- mybatis plus -->
  157. <dependency>
  158. <groupId>com.baomidou</groupId>
  159. <artifactId>mybatis-plus-boot-starter</artifactId>
  160. <version>${mybatis-plus.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>com.baomidou</groupId>
  164. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  165. <version>${dynamic-datasource.version}</version>
  166. </dependency>
  167. <!-- mapstruct 优雅的进行bean与dto的转换 -->
  168. <dependency>
  169. <groupId>org.mapstruct</groupId>
  170. <artifactId>mapstruct-jdk8</artifactId>
  171. <version>${mapstruct.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.mapstruct</groupId>
  175. <artifactId>mapstruct-processor</artifactId>
  176. <version>${mapstruct.version}</version>
  177. </dependency>
  178. <!-- alibaba druid -->
  179. <dependency>
  180. <groupId>com.alibaba</groupId>
  181. <artifactId>druid-spring-boot-starter</artifactId>
  182. <version>${druid.version}</version>
  183. </dependency>
  184. <!-- 以下是数据库连接池版本管理,建议使用provided方式引入-->
  185. <dependency>
  186. <groupId>org.apache.tomcat</groupId>
  187. <artifactId>tomcat-jdbc</artifactId>
  188. <version>${tomcat-jdbc.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>com.zaxxer</groupId>
  192. <artifactId>HikariCP</artifactId>
  193. <version>${HikariCP.version}</version>
  194. </dependency>
  195. <!-- 以下是数据库driver版本管理,建议使用provided方式引入 -->
  196. <dependency>
  197. <groupId>mysql</groupId>
  198. <artifactId>mysql-connector-java</artifactId>
  199. <version>${mysql.version}</version>
  200. </dependency>
  201. <!-- 以下是commons工具版本管理 -->
  202. <dependency>
  203. <groupId>com.google.guava</groupId>
  204. <artifactId>guava</artifactId>
  205. <version>${guava.version}</version>
  206. </dependency>
  207. <!-- 以下是spring版本管理 -->
  208. <dependency>
  209. <groupId>org.springframework</groupId>
  210. <artifactId>spring-context</artifactId>
  211. <version>${spring.version}</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.springframework</groupId>
  215. <artifactId>spring-web</artifactId>
  216. <version>${spring.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.springframework</groupId>
  220. <artifactId>spring-tx</artifactId>
  221. <version>${spring.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.springframework</groupId>
  225. <artifactId>spring-aop</artifactId>
  226. <version>${spring.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.springframework</groupId>
  230. <artifactId>spring-test</artifactId>
  231. <version>${spring.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.springframework</groupId>
  235. <artifactId>spring-beans</artifactId>
  236. <version>${spring.version}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.springframework</groupId>
  240. <artifactId>spring-webmvc</artifactId>
  241. <version>${spring.version}</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.springframework</groupId>
  245. <artifactId>spring-context-support</artifactId>
  246. <version>${spring.version}</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.springframework</groupId>
  250. <artifactId>spring-core</artifactId>
  251. <version>${spring.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.springframework</groupId>
  255. <artifactId>spring-expression</artifactId>
  256. <version>${spring.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>org.springframework</groupId>
  260. <artifactId>spring-jcl</artifactId>
  261. <version>${spring.version}</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.springframework</groupId>
  265. <artifactId>spring-jdbc</artifactId>
  266. <version>${spring.version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.springframework</groupId>
  270. <artifactId>spring-messaging</artifactId>
  271. <version>${spring.version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>org.springframework</groupId>
  275. <artifactId>spring-oxm</artifactId>
  276. <version>${spring.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>org.springframework</groupId>
  280. <artifactId>spring-webflux</artifactId>
  281. <version>${spring.version}</version>
  282. </dependency>
  283. <!-- 以下是spring data版本管理 -->
  284. <dependency>
  285. <groupId>org.springframework.data</groupId>
  286. <artifactId>spring-data-commons</artifactId>
  287. <version>${spring-data.version}</version>
  288. </dependency>
  289. <dependency>
  290. <groupId>org.springframework.data</groupId>
  291. <artifactId>spring-data-redis</artifactId>
  292. <version>${spring-data.version}</version>
  293. </dependency>
  294. <dependency>
  295. <groupId>org.springframework.data</groupId>
  296. <artifactId>spring-data-jpa</artifactId>
  297. <version>${spring-data.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>commons-lang</groupId>
  301. <artifactId>commons-lang</artifactId>
  302. <version>${lang.version}</version>
  303. </dependency>
  304. <!-- gson json,java对象互转 -->
  305. <dependency>
  306. <groupId>com.google.code.gson</groupId>
  307. <artifactId>gson</artifactId>
  308. <version>${gson.version}</version>
  309. </dependency>
  310. </dependencies>
  311. </dependencyManagement>
  312. <!-- 插件配置 -->
  313. <build>
  314. <finalName>${project.artifactId}</finalName>
  315. <pluginManagement>
  316. <plugins>
  317. <!-- compiler插件, 设定JDK版本 -->
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-compiler-plugin</artifactId>
  321. <version>${maven-compiler-plugin.version}</version>
  322. <configuration>
  323. <source>${java.version}</source>
  324. <target>${java.version}</target>
  325. <encoding>UTF-8</encoding>
  326. <skip>true</skip>
  327. <showWarnings>true</showWarnings>
  328. </configuration>
  329. </plugin>
  330. <plugin>
  331. <groupId>org.springframework.boot</groupId>
  332. <artifactId>spring-boot-maven-plugin</artifactId>
  333. <version>${spring-boot-maven-plugin.version}</version>
  334. </plugin>
  335. <plugin>
  336. <groupId>org.apache.maven.plugins</groupId>
  337. <artifactId>maven-source-plugin</artifactId>
  338. <version>${maven-source-plugin.version}</version>
  339. <configuration>
  340. <attach>true</attach>
  341. </configuration>
  342. <executions>
  343. <execution>
  344. <phase>compile</phase>
  345. <goals>
  346. <goal>jar</goal>
  347. </goals>
  348. </execution>
  349. </executions>
  350. </plugin>
  351. <!-- resource插件 -->
  352. <plugin>
  353. <groupId>org.apache.maven.plugins</groupId>
  354. <artifactId>maven-resources-plugin</artifactId>
  355. <version>${maven-resources-plugin.version}</version>
  356. <executions>
  357. <execution>
  358. <id>copy-resources</id>
  359. <phase>package</phase>
  360. <goals>
  361. <goal>copy-resources</goal>
  362. </goals>
  363. <configuration>
  364. <resources>
  365. <resource>
  366. <directory>src/main/resources/</directory>
  367. <includes>
  368. <include>**/*.yml</include>
  369. </includes>
  370. </resource>
  371. <resource>
  372. <directory>${project.build.directory}</directory>
  373. <includes>
  374. <include>**/version.txt</include>
  375. </includes>
  376. </resource>
  377. </resources>
  378. <outputDirectory>${project.build.directory}/config</outputDirectory>
  379. </configuration>
  380. </execution>
  381. <!--拷贝启动脚本-->
  382. <execution>
  383. <id>copy-version</id>
  384. <phase>package</phase>
  385. <goals>
  386. <goal>copy-resources</goal>
  387. </goals>
  388. <configuration>
  389. <resources>
  390. <resource>
  391. <directory>src/script</directory>
  392. </resource>
  393. </resources>
  394. <outputDirectory>${project.build.directory}</outputDirectory>
  395. </configuration>
  396. </execution>
  397. </executions>
  398. </plugin>
  399. </plugins>
  400. </pluginManagement>
  401. <plugins>
  402. <plugin>
  403. <groupId>org.apache.maven.plugins</groupId>
  404. <artifactId>maven-source-plugin</artifactId>
  405. </plugin>
  406. </plugins>
  407. </build>
  408. <distributionManagement>
  409. <snapshotRepository>
  410. <id>Snapshots</id>
  411. <name>apm-basics</name>
  412. <url>http://47.93.132.139:8081/nexus/content/repositories/snapshots/</url>
  413. </snapshotRepository>
  414. <repository>
  415. <id>Releases</id>
  416. <name>apm-basics</name>
  417. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  418. </repository>
  419. </distributionManagement>
  420. </project>