pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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>fm-parent</artifactId>
  8. <version>3.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. <parent>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-parent</artifactId>
  20. <version>2.1.14.RELEASE</version>
  21. <relativePath/>
  22. </parent>
  23. <!-- 版本管理 -->
  24. <properties>
  25. <fm.version>3.0.0</fm.version>
  26. <platform.version>1.0.0</platform.version>
  27. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  28. <tomcat-jdbc.version>9.0.31</tomcat-jdbc.version>
  29. <HikariCP.version>3.2.0</HikariCP.version>
  30. <mysql.version>8.0.15</mysql.version>
  31. <guava.version>27.0.1-jre</guava.version>
  32. <spring.version>5.1.15.RELEASE</spring.version>
  33. <spring-data.version>2.1.17.RELEASE</spring-data.version>
  34. <spring-data-jpa.version>2.0.11.RELEASE</spring-data-jpa.version>
  35. <mapstruct.version>1.2.0.Final</mapstruct.version>
  36. <druid-spring-boot-starter.version>1.1.22</druid-spring-boot-starter.version>
  37. </properties>
  38. <dependencyManagement>
  39. <dependencies>
  40. <dependency>
  41. <groupId>com.persagy</groupId>
  42. <artifactId>fm-server</artifactId>
  43. <version>${fm.version}</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.persagy</groupId>
  47. <artifactId>fm-common</artifactId>
  48. <version>${fm.version}</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.persagy</groupId>
  52. <artifactId>integrated-common-core</artifactId>
  53. <version>${platform.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.persagy</groupId>
  57. <artifactId>integrated-common-security</artifactId>
  58. <version>${platform.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.persagy</groupId>
  62. <artifactId>integrated-log-spring-boot-starter</artifactId>
  63. <version>${platform.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.persagy</groupId>
  67. <artifactId>integrated-redis-spring-boot-starter</artifactId>
  68. <version>${platform.version}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.persagy</groupId>
  72. <artifactId>integrated-config-client</artifactId>
  73. <version>${platform.version}</version>
  74. </dependency>
  75. <!-- mybatis plus -->
  76. <dependency>
  77. <groupId>com.baomidou</groupId>
  78. <artifactId>mybatis-plus-boot-starter</artifactId>
  79. <version>${mybatis-plus.version}</version>
  80. </dependency>
  81. <!-- mapstruct 优雅的进行bean与dto的转换 -->
  82. <dependency>
  83. <groupId>org.mapstruct</groupId>
  84. <artifactId>mapstruct-jdk8</artifactId>
  85. <version>${mapstruct.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.mapstruct</groupId>
  89. <artifactId>mapstruct-processor</artifactId>
  90. <version>${mapstruct.version}</version>
  91. </dependency>
  92. <!-- alibaba druid -->
  93. <dependency>
  94. <groupId>com.alibaba</groupId>
  95. <artifactId>druid-spring-boot-starter</artifactId>
  96. <version>${druid-spring-boot-starter.version}</version>
  97. </dependency>
  98. <!-- 以下是数据库连接池版本管理,建议使用provided方式引入-->
  99. <dependency>
  100. <groupId>org.apache.tomcat</groupId>
  101. <artifactId>tomcat-jdbc</artifactId>
  102. <version>${tomcat-jdbc.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.zaxxer</groupId>
  106. <artifactId>HikariCP</artifactId>
  107. <version>${HikariCP.version}</version>
  108. </dependency>
  109. <!-- 以下是数据库driver版本管理,建议使用provided方式引入 -->
  110. <dependency>
  111. <groupId>mysql</groupId>
  112. <artifactId>mysql-connector-java</artifactId>
  113. <version>${mysql.version}</version>
  114. </dependency>
  115. <!-- 以下是commons工具版本管理 -->
  116. <dependency>
  117. <groupId>com.google.guava</groupId>
  118. <artifactId>guava</artifactId>
  119. <version>${guava.version}</version>
  120. </dependency>
  121. <!-- 以下是spring版本管理 -->
  122. <dependency>
  123. <groupId>org.springframework</groupId>
  124. <artifactId>spring-context</artifactId>
  125. <version>${spring.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework</groupId>
  129. <artifactId>spring-web</artifactId>
  130. <version>${spring.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework</groupId>
  134. <artifactId>spring-tx</artifactId>
  135. <version>${spring.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework</groupId>
  139. <artifactId>spring-aop</artifactId>
  140. <version>${spring.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework</groupId>
  144. <artifactId>spring-test</artifactId>
  145. <version>${spring.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.springframework</groupId>
  149. <artifactId>spring-beans</artifactId>
  150. <version>${spring.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.springframework</groupId>
  154. <artifactId>spring-webmvc</artifactId>
  155. <version>${spring.version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.springframework</groupId>
  159. <artifactId>spring-context-support</artifactId>
  160. <version>${spring.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.springframework</groupId>
  164. <artifactId>spring-core</artifactId>
  165. <version>${spring.version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.springframework</groupId>
  169. <artifactId>spring-expression</artifactId>
  170. <version>${spring.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.springframework</groupId>
  174. <artifactId>spring-jcl</artifactId>
  175. <version>${spring.version}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.springframework</groupId>
  179. <artifactId>spring-jdbc</artifactId>
  180. <version>${spring.version}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.springframework</groupId>
  184. <artifactId>spring-messaging</artifactId>
  185. <version>${spring.version}</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.springframework</groupId>
  189. <artifactId>spring-oxm</artifactId>
  190. <version>${spring.version}</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.springframework</groupId>
  194. <artifactId>spring-webflux</artifactId>
  195. <version>${spring.version}</version>
  196. </dependency>
  197. <!-- 以下是spring data版本管理 -->
  198. <dependency>
  199. <groupId>org.springframework.data</groupId>
  200. <artifactId>spring-data-commons</artifactId>
  201. <version>${spring-data.version}</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.springframework.data</groupId>
  205. <artifactId>spring-data-redis</artifactId>
  206. <version>${spring-data.version}</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.springframework.data</groupId>
  210. <artifactId>spring-data-jpa</artifactId>
  211. <version>${spring-data-jpa.version}</version>
  212. </dependency>
  213. </dependencies>
  214. </dependencyManagement>
  215. <!-- 插件配置 -->
  216. <build>
  217. <pluginManagement>
  218. <plugins>
  219. <!-- compiler插件, 设定JDK版本 -->
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-compiler-plugin</artifactId>
  223. <version>3.7.0</version>
  224. <configuration>
  225. <source>${java.version}</source>
  226. <target>${java.version}</target>
  227. <showWarnings>true</showWarnings>
  228. </configuration>
  229. </plugin>
  230. <!-- resource插件 -->
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-resources-plugin</artifactId>
  234. <version>3.0.2</version>
  235. </plugin>
  236. <!-- test插件, 仅测试名称为*Test的类, 使用支持分组测试的surefire-junit47 driver -->
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-surefire-plugin</artifactId>
  240. <version>2.20.1</version>
  241. <configuration>
  242. <includes>
  243. <include>**/*Test.java</include>
  244. <include>**/*Test.scala</include>
  245. </includes>
  246. <skipTests>true</skipTests>
  247. </configuration>
  248. <dependencies>
  249. <dependency>
  250. <groupId>org.apache.maven.surefire</groupId>
  251. <artifactId>surefire-junit4</artifactId>
  252. <version>2.18.1</version>
  253. </dependency>
  254. </dependencies>
  255. </plugin>
  256. <!-- war打包插件, 设定war包名称不带版本号 -->
  257. <plugin>
  258. <groupId>org.apache.maven.plugins</groupId>
  259. <artifactId>maven-war-plugin</artifactId>
  260. <version>3.2.3</version>
  261. <configuration>
  262. <warName>${project.artifactId}${fm.version}</warName>
  263. <failOnMissingWebXml>false</failOnMissingWebXml>
  264. </configuration>
  265. </plugin>
  266. <!-- jar打包相关插件 -->
  267. <plugin>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-jar-plugin</artifactId>
  270. <version>3.1.0</version>
  271. <executions>
  272. <execution>
  273. <goals>
  274. <goal>test-jar</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. <configuration>
  279. <archive>
  280. <manifest>
  281. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  282. </manifest>
  283. </archive>
  284. </configuration>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-source-plugin</artifactId>
  289. <version>3.0.1</version>
  290. <configuration>
  291. <attach>true</attach>
  292. </configuration>
  293. <executions>
  294. <execution>
  295. <phase>compile</phase>
  296. <goals>
  297. <goal>jar</goal>
  298. </goals>
  299. </execution>
  300. </executions>
  301. </plugin>
  302. <!-- clean插件 -->
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-clean-plugin</artifactId>
  306. <version>3.0.0</version>
  307. </plugin>
  308. <!-- install插件 -->
  309. <plugin>
  310. <groupId>org.apache.maven.plugins</groupId>
  311. <artifactId>maven-install-plugin</artifactId>
  312. <version>2.5.2</version>
  313. </plugin>
  314. </plugins>
  315. </pluginManagement>
  316. <plugins>
  317. <plugin>
  318. <groupId>org.apache.maven.plugins</groupId>
  319. <artifactId>maven-source-plugin</artifactId>
  320. </plugin>
  321. </plugins>
  322. </build>
  323. </project>