pom.xml 16 KB

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