pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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.agileboot</groupId>
  7. <artifactId>agileboot</artifactId>
  8. <!-- 放弃使用 revision字段 子module会安装失败-->
  9. <!-- https://stackoverflow.com/questions/52173260/how-to-resolve-parent-pom-dependency-issue-failed-to-read-artifact-descriptor -->
  10. <version>1.0.0</version>
  11. <name>agileboot</name>
  12. <url>http://www.agileboot.vip</url>
  13. <description>基于 springboot的快速开发系统</description>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  19. <druid.version>1.2.8</druid.version>
  20. <bitwalker.version>1.21</bitwalker.version>
  21. <swagger.version>3.0.0</swagger.version>
  22. <kaptcha.version>2.3.2</kaptcha.version>
  23. <mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
  24. <pagehelper.boot.version>1.4.1</pagehelper.boot.version>
  25. <oshi.version>6.4.0</oshi.version>
  26. <commons.io.version>2.11.0</commons.io.version>
  27. <commons.fileupload.version>1.4</commons.fileupload.version>
  28. <commons.collections.version>3.2.2</commons.collections.version>
  29. <poi.version>4.1.2</poi.version>
  30. <velocity.version>2.3</velocity.version>
  31. <jwt.version>0.9.1</jwt.version>
  32. <hutool.version>5.7.22</hutool.version>
  33. <lombok.version>1.18.30</lombok.version>
  34. <mybatis-plus.version>3.5.2</mybatis-plus.version>
  35. <mybatis-plus-generator.version>3.5.1</mybatis-plus-generator.version>
  36. <it.ozimov.version>0.7.3</it.ozimov.version>
  37. <io.swagger.version>1.6.8</io.swagger.version>
  38. <org.lionsoul.version>2.6.5</org.lionsoul.version>
  39. <com.google.guava.version>31.0.1-jre</com.google.guava.version>
  40. <springdoc-openapi-ui.version>1.6.14</springdoc-openapi-ui.version>
  41. <mysql-connector-java>8.0.31</mysql-connector-java>
  42. <spring.boot.version>2.7.10</spring.boot.version>
  43. <maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
  44. <!-- 升级版本以支持junit5 -->
  45. <maven.surefire.plugin.version>3.0.0-M7</maven.surefire.plugin.version>
  46. <maven.war.plugin.version>3.1.0</maven.war.plugin.version>
  47. <!-- JUnit Jupiter 版本 -->
  48. <junit.jupiter.version>5.9.2</junit.jupiter.version>
  49. <!-- Mockito 版本(或直接用 mockito-inline)-->
  50. <mockito.version>4.11.0</mockito.version>
  51. </properties>
  52. <!-- 依赖声明 -->
  53. <dependencyManagement>
  54. <dependencies>
  55. <!-- SpringBoot的依赖配置-->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-dependencies</artifactId>
  59. <version>${spring.boot.version}</version>
  60. <type>pom</type>
  61. <scope>import</scope>
  62. </dependency>
  63. <!-- 阿里数据库连接池 -->
  64. <dependency>
  65. <groupId>com.alibaba</groupId>
  66. <artifactId>druid-spring-boot-starter</artifactId>
  67. <version>${druid.version}</version>
  68. </dependency>
  69. <!-- 解析客户端操作系统、浏览器等 -->
  70. <dependency>
  71. <groupId>eu.bitwalker</groupId>
  72. <artifactId>UserAgentUtils</artifactId>
  73. <version>${bitwalker.version}</version>
  74. </dependency>
  75. <!-- SpringBoot集成mybatis框架 -->
  76. <dependency>
  77. <groupId>org.mybatis.spring.boot</groupId>
  78. <artifactId>mybatis-spring-boot-starter</artifactId>
  79. <version>${mybatis-spring-boot.version}</version>
  80. </dependency>
  81. <!-- mybatis plus 主依赖 -->
  82. <dependency>
  83. <groupId>com.baomidou</groupId>
  84. <artifactId>mybatis-plus-boot-starter</artifactId>
  85. <version>${mybatis-plus.version}</version>
  86. </dependency>
  87. <!-- mybatis plus 代码生成器依赖 -->
  88. <dependency>
  89. <groupId>com.baomidou</groupId>
  90. <artifactId>mybatis-plus-generator</artifactId>
  91. <version>${mybatis-plus-generator.version}</version>
  92. </dependency>
  93. <!-- pageHelper 分页插件 -->
  94. <dependency>
  95. <groupId>com.github.pagehelper</groupId>
  96. <artifactId>pagehelper-spring-boot-starter</artifactId>
  97. <version>${pagehelper.boot.version}</version>
  98. </dependency>
  99. <!-- 获取系统信息 -->
  100. <dependency>
  101. <groupId>com.github.oshi</groupId>
  102. <artifactId>oshi-core</artifactId>
  103. <version>${oshi.version}</version>
  104. </dependency>
  105. <!-- io常用工具类 -->
  106. <dependency>
  107. <groupId>commons-io</groupId>
  108. <artifactId>commons-io</artifactId>
  109. <version>${commons.io.version}</version>
  110. </dependency>
  111. <!-- 文件上传工具类 -->
  112. <dependency>
  113. <groupId>commons-fileupload</groupId>
  114. <artifactId>commons-fileupload</artifactId>
  115. <version>${commons.fileupload.version}</version>
  116. </dependency>
  117. <!-- excel工具 -->
  118. <dependency>
  119. <groupId>org.apache.poi</groupId>
  120. <artifactId>poi-ooxml</artifactId>
  121. <version>${poi.version}</version>
  122. </dependency>
  123. <!-- velocity代码生成使用模板 -->
  124. <dependency>
  125. <groupId>org.apache.velocity</groupId>
  126. <artifactId>velocity-engine-core</artifactId>
  127. <version>${velocity.version}</version>
  128. </dependency>
  129. <!-- Mysql驱动包 -->
  130. <dependency>
  131. <groupId>mysql</groupId>
  132. <artifactId>mysql-connector-java</artifactId>
  133. <version>${mysql-connector-java}</version>
  134. </dependency>
  135. <!-- collections工具类 -->
  136. <dependency>
  137. <groupId>commons-collections</groupId>
  138. <artifactId>commons-collections</artifactId>
  139. <version>${commons.collections.version}</version>
  140. </dependency>
  141. <!-- Token生成与解析-->
  142. <dependency>
  143. <groupId>io.jsonwebtoken</groupId>
  144. <artifactId>jjwt</artifactId>
  145. <version>${jwt.version}</version>
  146. </dependency>
  147. <!-- 验证码 -->
  148. <dependency>
  149. <groupId>com.github.penggle</groupId>
  150. <artifactId>kaptcha</artifactId>
  151. <version>${kaptcha.version}</version>
  152. </dependency>
  153. <!-- admin管理模块 -->
  154. <dependency>
  155. <groupId>com.agileboot</groupId>
  156. <artifactId>agileboot-admin</artifactId>
  157. <version>${project.version}</version>
  158. </dependency>
  159. <!-- app预留接口-->
  160. <dependency>
  161. <groupId>com.agileboot</groupId>
  162. <artifactId>agileboot-api</artifactId>
  163. <version>${project.version}</version>
  164. </dependency>
  165. <!-- 核心业务领域-->
  166. <dependency>
  167. <groupId>com.agileboot</groupId>
  168. <artifactId>agileboot-domain</artifactId>
  169. <version>${project.version}</version>
  170. </dependency>
  171. <!-- 核心模块-->
  172. <dependency>
  173. <groupId>com.agileboot</groupId>
  174. <artifactId>agileboot-infrastructure</artifactId>
  175. <version>${project.version}</version>
  176. </dependency>
  177. <!-- 通用工具-->
  178. <dependency>
  179. <groupId>com.agileboot</groupId>
  180. <artifactId>agileboot-common</artifactId>
  181. <version>${project.version}</version>
  182. </dependency>
  183. <!-- hutool common tools-->
  184. <dependency>
  185. <groupId>cn.hutool</groupId>
  186. <artifactId>hutool-all</artifactId>
  187. <version>${hutool.version}</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.projectlombok</groupId>
  191. <artifactId>lombok</artifactId>
  192. <version>${lombok.version}</version>
  193. <scope>provided</scope>
  194. </dependency>
  195. <!-- JUnit 5 -->
  196. <dependency>
  197. <groupId>org.junit.jupiter</groupId>
  198. <artifactId>junit-jupiter-api</artifactId>
  199. <version>${junit.jupiter.version}</version>
  200. <scope>test</scope>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.junit.jupiter</groupId>
  204. <artifactId>junit-jupiter-engine</artifactId>
  205. <version>${junit.jupiter.version}</version>
  206. <scope>test</scope>
  207. </dependency>
  208. <!-- Mockito -->
  209. <dependency>
  210. <groupId>org.mockito</groupId>
  211. <artifactId>mockito-core</artifactId>
  212. <version>${mockito.version}</version>
  213. <scope>test</scope>
  214. </dependency>
  215. <!-- 如果有需要 mock final/静态 -->
  216. <dependency>
  217. <groupId>org.mockito</groupId>
  218. <artifactId>mockito-inline</artifactId>
  219. <version>${mockito.version}</version>
  220. <scope>test</scope>
  221. </dependency>
  222. <!-- 获取系统信息 -->
  223. <dependency>
  224. <groupId>it.ozimov</groupId>
  225. <artifactId>embedded-redis</artifactId>
  226. <version>${it.ozimov.version}</version>
  227. </dependency>
  228. <!-- 本地ip库 -->
  229. <dependency>
  230. <groupId>org.lionsoul</groupId>
  231. <artifactId>ip2region</artifactId>
  232. <version>${org.lionsoul.version}</version>
  233. </dependency>
  234. <!-- 引入guava包 -->
  235. <dependency>
  236. <groupId>com.google.guava</groupId>
  237. <artifactId>guava</artifactId>
  238. <version>${com.google.guava.version}</version>
  239. </dependency>
  240. <!-- 多数据源 -->
  241. <dependency>
  242. <groupId>com.baomidou</groupId>
  243. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  244. <version>${mybatis-plus.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.springdoc</groupId>
  248. <artifactId>springdoc-openapi-ui</artifactId>
  249. <version>${springdoc-openapi-ui.version}</version>
  250. </dependency>
  251. <!-- swagger注解 -->
  252. <dependency>
  253. <groupId>io.swagger</groupId>
  254. <artifactId>swagger-annotations</artifactId>
  255. <version>${io.swagger.version}</version>
  256. </dependency>
  257. </dependencies>
  258. </dependencyManagement>
  259. <modules>
  260. <module>agileboot-admin</module>
  261. <module>agileboot-api</module>
  262. <module>agileboot-common</module>
  263. <module>agileboot-domain</module>
  264. <module>agileboot-infrastructure</module>
  265. </modules>
  266. <packaging>pom</packaging>
  267. <dependencies>
  268. <dependency>
  269. <groupId>cn.hutool</groupId>
  270. <artifactId>hutool-all</artifactId>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.projectlombok</groupId>
  274. <artifactId>lombok</artifactId>
  275. </dependency>
  276. <dependency>
  277. <groupId>junit</groupId>
  278. <artifactId>junit</artifactId>
  279. <scope>test</scope>
  280. </dependency>
  281. <dependency>
  282. <groupId>com.baomidou</groupId>
  283. <artifactId>mybatis-plus-boot-starter</artifactId>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.springframework.boot</groupId>
  287. <artifactId>spring-boot-configuration-processor</artifactId>
  288. <optional>true</optional>
  289. </dependency>
  290. </dependencies>
  291. <build>
  292. <pluginManagement>
  293. <plugins>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-compiler-plugin</artifactId>
  297. <version>${maven.compiler.plugin.version}</version>
  298. <configuration>
  299. <source>${java.version}</source>
  300. <target>${java.version}</target>
  301. <encoding>${project.build.sourceEncoding}</encoding>
  302. </configuration>
  303. </plugin>
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-surefire-plugin</artifactId>
  307. <version>${maven.surefire.plugin.version}</version>
  308. <!-- 想跑test的话 设置成false -->
  309. <configuration>
  310. <skipTests>true</skipTests>
  311. </configuration>
  312. </plugin>
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-war-plugin</artifactId>
  316. <version>${maven.war.plugin.version}</version>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.springframework.boot</groupId>
  320. <artifactId>spring-boot-maven-plugin</artifactId>
  321. <version>${spring.boot.version}</version>
  322. </plugin>
  323. </plugins>
  324. </pluginManagement>
  325. <plugins>
  326. <plugin>
  327. <groupId>org.apache.maven.plugins</groupId>
  328. <artifactId>maven-compiler-plugin</artifactId>
  329. </plugin>
  330. <plugin>
  331. <groupId>org.apache.maven.plugins</groupId>
  332. <artifactId>maven-surefire-plugin</artifactId>
  333. </plugin>
  334. </plugins>
  335. </build>
  336. <!-- <repositories>-->
  337. <!-- <repository>-->
  338. <!-- <id>public</id>-->
  339. <!-- <name>aliyun nexus</name>-->
  340. <!-- <url>https://maven.aliyun.com/repository/public</url>-->
  341. <!-- <releases>-->
  342. <!-- <enabled>true</enabled>-->
  343. <!-- </releases>-->
  344. <!-- </repository>-->
  345. <!-- </repositories>-->
  346. <!-- <pluginRepositories>-->
  347. <!-- <pluginRepository>-->
  348. <!-- <id>public</id>-->
  349. <!-- <name>aliyun nexus</name>-->
  350. <!-- <url>https://maven.aliyun.com/repository/public</url>-->
  351. <!-- <releases>-->
  352. <!-- <enabled>true</enabled>-->
  353. <!-- </releases>-->
  354. <!-- <snapshots>-->
  355. <!-- <enabled>false</enabled>-->
  356. <!-- </snapshots>-->
  357. <!-- </pluginRepository>-->
  358. <!-- </pluginRepositories>-->
  359. </project>