pom.xml 13 KB

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