pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <modules>
  6. <module>mango-common</module>
  7. <module>mango-infrastructure</module>
  8. <module>mango-manager</module>
  9. <module>mango-domain</module>
  10. <module>mango-application</module>
  11. </modules>
  12. <packaging>pom</packaging>
  13. <groupId>com.poyee</groupId>
  14. <artifactId>ratingRecommend</artifactId>
  15. <version>1.0.0</version>
  16. <name>评级推荐系统</name>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <sourceEncoding>UTF-8</sourceEncoding>
  20. <java.version>1.8</java.version>
  21. <mahout.version>0.9</mahout.version>
  22. <dozer.version>6.5.2</dozer.version>
  23. <bee.version>1.17</bee.version>
  24. <log.version>1.2.17</log.version>
  25. <lombok.version>1.18.34</lombok.version>
  26. <fastjson.version>1.2.74</fastjson.version>
  27. <redis.version>3.5.0</redis.version>
  28. <mybatis.boot>2.1.3</mybatis.boot>
  29. <druid.version>1.2.4</druid.version>
  30. <mybatis.version>3.5.5</mybatis.version>
  31. <mybatis.spring>2.0.7</mybatis.spring>
  32. <postgresql.version>42.6.0</postgresql.version>
  33. <janino.version>3.0.12</janino.version>
  34. <logappender.version>1.8.5</logappender.version>
  35. <logfluent.version>0.3.4</logfluent.version>
  36. <pagehelper.boot.version>1.3.0</pagehelper.boot.version>
  37. <oshi.version>5.2.5</oshi.version>
  38. <bitwalker.version>1.19</bitwalker.version>
  39. <swagger.version>2.9.2</swagger.version>
  40. <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
  41. <spring-cloud.version>Hoxton.SR12</spring-cloud.version>
  42. <redisson.version>3.27.2</redisson.version>
  43. </properties>
  44. <dependencies>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-web</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-test</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-data-redis</artifactId>
  57. </dependency>
  58. <!-- Lettuce连接池依赖(配合spring.redis.lettuce.pool使用) -->
  59. <dependency>
  60. <groupId>org.apache.commons</groupId>
  61. <artifactId>commons-pool2</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-actuator</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.micrometer</groupId>
  69. <artifactId>micrometer-registry-prometheus</artifactId>
  70. </dependency>
  71. <!-- SpringBoot 拦截器 -->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-aop</artifactId>
  75. </dependency>
  76. </dependencies>
  77. <dependencyManagement>
  78. <dependencies>
  79. <!-- 覆盖 openfeign 版本,修复 spring-cloud-openfeign-core:2.2.9.RELEASE 的 SpringEncoder 引用 MediaType.MULTIPART_RELATED 与 Spring 5.2.x 不兼容的问题 -->
  80. <dependency>
  81. <groupId>org.springframework.cloud</groupId>
  82. <artifactId>spring-cloud-starter-openfeign</artifactId>
  83. <version>2.2.6.RELEASE</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.cloud</groupId>
  87. <artifactId>spring-cloud-openfeign-core</artifactId>
  88. <version>2.2.6.RELEASE</version>
  89. </dependency>
  90. <!-- 升级 Redisson 版本,3.5.0 过老存在连接池和超时处理缺陷 -->
  91. <dependency>
  92. <groupId>org.redisson</groupId>
  93. <artifactId>redisson</artifactId>
  94. <version>${redisson.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-dependencies</artifactId>
  99. <version>2.2.5.RELEASE</version>
  100. <type>pom</type>
  101. <scope>import</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.cloud</groupId>
  105. <artifactId>spring-cloud-dependencies</artifactId>
  106. <version>${spring-cloud.version}</version>
  107. <type>pom</type>
  108. <scope>import</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.poyee</groupId>
  112. <artifactId>mango-common</artifactId>
  113. <version>1.0.0</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.poyee</groupId>
  117. <artifactId>mango-infrastructure</artifactId>
  118. <version>1.0.0</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.poyee</groupId>
  122. <artifactId>mango-manager</artifactId>
  123. <version>1.0.0</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.poyee</groupId>
  127. <artifactId>mango-domain</artifactId>
  128. <version>1.0.0</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.poyee</groupId>
  132. <artifactId>mango-application</artifactId>
  133. <version>1.0.0</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.projectlombok</groupId>
  137. <artifactId>lombok</artifactId>
  138. <version>${lombok.version}</version>
  139. <scope>provided</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.github.dozermapper</groupId>
  143. <artifactId>dozer-core</artifactId>
  144. <version>${dozer.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>log4j</groupId>
  148. <artifactId>log4j</artifactId>
  149. <version>${log.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.alibaba</groupId>
  153. <artifactId>fastjson</artifactId>
  154. <version>${fastjson.version}</version>
  155. </dependency>
  156. <!--七牛云存储-->
  157. <dependency>
  158. <groupId>com.qiniu</groupId>
  159. <artifactId>qiniu-java-sdk</artifactId>
  160. <version>[7.8.0, 7.8.99]</version>
  161. </dependency>
  162. <!-- MyBatis Spring Boot Starter -->
  163. <!-- <dependency>-->
  164. <!-- <groupId>org.mybatis.spring.boot</groupId>-->
  165. <!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
  166. <!-- <version>${mybatis.boot}</version>-->
  167. <!-- </dependency>-->
  168. <!--阿里数据库连接池 -->
  169. <dependency>
  170. <groupId>com.alibaba</groupId>
  171. <artifactId>druid-spring-boot-starter</artifactId>
  172. <version>${druid.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.postgresql</groupId>
  176. <artifactId>postgresql</artifactId>
  177. <version>${postgresql.version}</version>
  178. </dependency>
  179. <!-- 解析客户端操作系统、浏览器等 -->
  180. <dependency>
  181. <groupId>eu.bitwalker</groupId>
  182. <artifactId>UserAgentUtils</artifactId>
  183. <version>${bitwalker.version}</version>
  184. </dependency>
  185. <!-- pagehelper 分页插件 -->
  186. <dependency>
  187. <groupId>com.github.pagehelper</groupId>
  188. <artifactId>pagehelper-spring-boot-starter</artifactId>
  189. <version>${pagehelper.boot.version}</version>
  190. </dependency>
  191. <!-- MyBatis-Plus -->
  192. <dependency>
  193. <groupId>com.baomidou</groupId>
  194. <artifactId>mybatis-plus-boot-starter</artifactId>
  195. <version>${mybatis-plus.version}</version>
  196. <!-- 排除自带的旧版 jsqlparser -->
  197. <exclusions>
  198. <exclusion>
  199. <groupId>com.github.jsqlparser</groupId>
  200. <artifactId>jsqlparser</artifactId>
  201. </exclusion>
  202. </exclusions>
  203. </dependency>
  204. <dependency>
  205. <groupId>com.github.jsqlparser</groupId>
  206. <artifactId>jsqlparser</artifactId>
  207. <version>4.6</version>
  208. </dependency>
  209. <!-- 获取系统信息 -->
  210. <dependency>
  211. <groupId>com.github.oshi</groupId>
  212. <artifactId>oshi-core</artifactId>
  213. <version>${oshi.version}</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.mybatis</groupId>
  217. <artifactId>mybatis</artifactId>
  218. <version>${mybatis.version}</version>
  219. </dependency>
  220. <!-- 不变组件-->
  221. <dependency>
  222. <groupId>com.dtflys.forest</groupId>
  223. <artifactId>forest-spring-boot-starter</artifactId>
  224. <version>1.5.24</version>
  225. <exclusions>
  226. <exclusion>
  227. <artifactId>httpclient-cache</artifactId>
  228. <groupId>org.apache.httpcomponents</groupId>
  229. </exclusion>
  230. <exclusion>
  231. <artifactId>commons-logging</artifactId>
  232. <groupId>commons-logging</groupId>
  233. </exclusion>
  234. <exclusion>
  235. <artifactId>commons-io</artifactId>
  236. <groupId>commons-io</groupId>
  237. </exclusion>
  238. </exclusions>
  239. </dependency>
  240. <dependency>
  241. <groupId>com.github.xiaoymin</groupId>
  242. <artifactId>knife4j-spring-boot-starter</artifactId>
  243. <version>2.0.9</version>
  244. <exclusions>
  245. <exclusion>
  246. <groupId>io.springfox</groupId>
  247. <artifactId>springfox-core</artifactId>
  248. </exclusion>
  249. </exclusions>
  250. </dependency>
  251. <dependency>
  252. <groupId>io.springfox</groupId>
  253. <artifactId>springfox-swagger2</artifactId>
  254. <version>2.10.5</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>io.swagger</groupId>
  258. <artifactId>swagger-annotations</artifactId>
  259. <version>1.5.21</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>io.swagger</groupId>
  263. <artifactId>swagger-models</artifactId>
  264. <version>1.5.21</version>
  265. </dependency>
  266. <dependency>
  267. <groupId>net.java.dev.jna</groupId>
  268. <artifactId>jna</artifactId>
  269. <version>5.5.0</version>
  270. </dependency>
  271. <dependency>
  272. <groupId>net.java.dev.jna</groupId>
  273. <artifactId>jna-platform</artifactId>
  274. <version>5.5.0</version>
  275. </dependency>
  276. </dependencies>
  277. </dependencyManagement>
  278. <build>
  279. <plugins>
  280. <plugin>
  281. <groupId>org.apache.maven.plugins</groupId>
  282. <artifactId>maven-compiler-plugin</artifactId>
  283. <version>3.1</version>
  284. <configuration>
  285. <source>${java.version}</source>
  286. <target>${java.version}</target>
  287. <encoding>${project.build.sourceEncoding}</encoding>
  288. </configuration>
  289. </plugin>
  290. <!-- 升级 surefire 到 2.22.2(Spring Boot 2.2.5 对应版本):本项目用 BOM import 而非继承
  291. spring-boot-starter-parent,默认 surefire 过旧(2.12.x)无法发现/执行 JUnit5(Jupiter) 用例,
  292. 此处显式固定以支持 JUnit5 单元测试 -->
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-surefire-plugin</artifactId>
  296. <version>2.22.2</version>
  297. </plugin>
  298. </plugins>
  299. </build>
  300. <repositories>
  301. <repository>
  302. <id>public</id>
  303. <name>aliyun nexus</name>
  304. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  305. <releases>
  306. <enabled>true</enabled>
  307. </releases>
  308. </repository>
  309. <repository>
  310. <id>zto-maven</id>
  311. <url>https://dl.bintray.com/chocotan/maven</url>
  312. </repository>
  313. </repositories>
  314. <pluginRepositories>
  315. <pluginRepository>
  316. <id>public</id>
  317. <name>aliyun nexus</name>
  318. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  319. <releases>
  320. <enabled>true</enabled>
  321. </releases>
  322. <snapshots>
  323. <enabled>false</enabled>
  324. </snapshots>
  325. </pluginRepository>
  326. </pluginRepositories>
  327. </project>