pom.xml 13 KB

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