pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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. <packaging>pom</packaging>
  7. <modules>
  8. <module>orbit-base-track</module>
  9. <module>orbit-base-biz</module>
  10. <module>orbit-base-framework</module>
  11. <module>orbit-base-plan</module>
  12. <module>orbit-base-gateway</module>
  13. <module>orbit-base-user</module>
  14. </modules>
  15. <!-- 项目工程信息 -->
  16. <groupId>orbit.base.server</groupId>
  17. <artifactId>orbit-base-server</artifactId>
  18. <version>0.0.1</version>
  19. <name>orbit-base-server</name>
  20. <description>server about zklt</description>
  21. <!-- 父模块 -->
  22. <parent>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-parent</artifactId>
  25. <version>2.4.2</version>
  26. <relativePath/> <!-- lookup parent from repository -->
  27. </parent>
  28. <!-- 版本依赖 -->
  29. <properties>
  30. <java.version>1.8</java.version>
  31. <spring-cloud-alibaba.version>2021.1</spring-cloud-alibaba.version>
  32. <spring-cloud.version>2020.0.1</spring-cloud.version>
  33. <gateway.version>3.0.0</gateway.version>
  34. <loadbalancer.version>3.0.0</loadbalancer.version>
  35. <bootstrap.version>3.0.6</bootstrap.version>
  36. <fastjson.version>1.2.83</fastjson.version>
  37. <openFeign.version>3.0.6</openFeign.version>
  38. <swgger.version>2.9.2</swgger.version>
  39. <spring-boot-starter.version>2.4.2</spring-boot-starter.version>
  40. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  41. <mapstruct.version>1.4.2.Final</mapstruct.version>
  42. <track.version>0.0.1</track.version>
  43. <commons.version>3.4</commons.version>
  44. <lombok.version>1.18.16</lombok.version>
  45. <mybatis.version>3.4.3</mybatis.version>
  46. <druid.version>1.2.8</druid.version>
  47. <mysql.version>8.0.22</mysql.version>
  48. <base.version>0.0.1</base.version>
  49. <lucene.version>8.10.0</lucene.version>
  50. <kafka.version>2.3.1</kafka.version>
  51. <hutool.version>5.6.5</hutool.version>
  52. <sharding-jdbc.version>4.0.0-RC1</sharding-jdbc.version>
  53. <security-jwt.version>1.0.9.RELEASE</security-jwt.version>
  54. <jsonwebtoken.version>0.9.0</jsonwebtoken.version>
  55. <mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
  56. <mybatis-plus.version>3.1.0</mybatis-plus.version>
  57. <hibernate-validator.version>6.1.0.Final</hibernate-validator.version>
  58. <pagehelper.boot.version>1.4.1</pagehelper.boot.version>
  59. </properties>
  60. <!--
  61. dependencyManagement与dependencies区别
  62. 1.dependencies即使不在子项目中写依赖,子项目仍然会从父项目中继承该依赖
  63. 2.dependencyManagement只是声明依赖,子项目不声明依赖的话,是不会从父项目中继承下来的;
  64. 只有子项目写了该依赖项,并没有指定具体版本,才会从父项目中继承该项
  65. -->
  66. <dependencies>
  67. <!-- lombok依赖 -->
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <version>${lombok.version}</version>
  72. </dependency>
  73. <!-- swagger -->
  74. <dependency>
  75. <groupId>io.springfox</groupId>
  76. <artifactId>springfox-swagger-ui</artifactId>
  77. <version>${swgger.version}</version>
  78. </dependency>
  79. <!-- mysql驱动 -->
  80. <dependency>
  81. <groupId>mysql</groupId>
  82. <artifactId>mysql-connector-java</artifactId>
  83. <scope>runtime</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.mapstruct</groupId>
  87. <artifactId>mapstruct</artifactId>
  88. <version>${mapstruct.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.mapstruct</groupId>
  92. <artifactId>mapstruct-processor</artifactId>
  93. <version>${mapstruct.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.alibaba</groupId>
  97. <artifactId>fastjson</artifactId>
  98. <version>${fastjson.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>io.springfox</groupId>
  102. <artifactId>springfox-swagger2</artifactId>
  103. <version>${swgger.version}</version>
  104. <exclusions>
  105. <exclusion>
  106. <groupId>org.mapstruct</groupId>
  107. <artifactId>mapstruct</artifactId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
  112. <dependency>
  113. <groupId>org.apache.commons</groupId>
  114. <artifactId>commons-lang3</artifactId>
  115. <version>3.11</version>
  116. </dependency>
  117. </dependencies>
  118. <dependencyManagement>
  119. <dependencies>
  120. <!--hibernate version -->
  121. <dependency>
  122. <groupId>org.hibernate</groupId>
  123. <artifactId>hibernate-validator</artifactId>
  124. <version>${hibernate-validator.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.hibernate</groupId>
  128. <artifactId>hibernate-validator-cdi</artifactId>
  129. <version>${hibernate-validator.version}</version>
  130. </dependency>
  131. <!-- MybatisPlus 核心库 -->
  132. <dependency>
  133. <groupId>com.baomidou</groupId>
  134. <artifactId>mybatis-plus-boot-starter</artifactId>
  135. <version>${mybatis.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.mybatis.spring.boot</groupId>
  139. <artifactId>mybatis-spring-boot-autoconfigure</artifactId>
  140. <version>2.2.2</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.projectlombok</groupId>
  144. <artifactId>lombok</artifactId>
  145. <version>${lombok.version}</version>
  146. </dependency>
  147. <!-- openFeign -->
  148. <dependency>
  149. <groupId>org.springframework.cloud</groupId>
  150. <artifactId>spring-cloud-starter-openfeign</artifactId>
  151. <version>${openFeign.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.kafka</groupId>
  155. <artifactId>kafka-clients</artifactId>
  156. <version>${kafka.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.apache.kafka</groupId>
  160. <artifactId>kafka-streams</artifactId>
  161. <version>1.0.0</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>redis.clients</groupId>
  165. <artifactId>jedis</artifactId>
  166. <version>3.2.0</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-starter-quartz</artifactId>
  171. <version>2.4.2</version>
  172. </dependency>
  173. <!-- web控制依赖 -->
  174. <dependency>
  175. <groupId>org.springframework.boot</groupId>
  176. <artifactId>spring-boot-starter-web</artifactId>
  177. <version>${spring-boot-starter.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.springframework.boot</groupId>
  181. <artifactId>spring-boot-starter</artifactId>
  182. <version>${spring-boot-starter.version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.springframework.boot</groupId>
  186. <artifactId>spring-boot-starter-test</artifactId>
  187. <scope>test</scope>
  188. <version>${spring-boot-starter.version}</version>
  189. </dependency>
  190. <!-- Spring Dependencies -->
  191. <dependency>
  192. <groupId>org.springframework.cloud</groupId>
  193. <artifactId>spring-cloud-dependencies</artifactId>
  194. <version>${spring-cloud.version}</version>
  195. <type>pom</type>
  196. <scope>import</scope>
  197. </dependency>
  198. <!-- nacos注册 -->
  199. <dependency>
  200. <groupId>com.alibaba.cloud</groupId>
  201. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  202. <version>${spring-cloud-alibaba.version}</version>
  203. </dependency>
  204. <!-- nacos配置-->
  205. <dependency>
  206. <groupId>com.alibaba.cloud</groupId>
  207. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  208. <version>${spring-cloud-alibaba.version}</version>
  209. </dependency>
  210. <!-- spring-cloud-dependencies 2020.0.1 版本不在默认加载bootstrap 文件
  211. 引入该依赖读取bootstrap文件 -->
  212. <dependency>
  213. <groupId>org.springframework.cloud</groupId>
  214. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  215. <version>${bootstrap.version}</version>
  216. </dependency>
  217. <!--工具依赖-->
  218. <dependency>
  219. <groupId>org.apache.commons</groupId>
  220. <artifactId>commons-lang3</artifactId>
  221. <version>${commons.version}</version>
  222. </dependency>
  223. <!-- 连接池 -->
  224. <dependency>
  225. <groupId>com.alibaba</groupId>
  226. <artifactId>druid-spring-boot-starter</artifactId>
  227. <version>${druid.version}</version>
  228. </dependency>
  229. <!-- <dependency>
  230. <groupId>orbit.base.server</groupId>
  231. <artifactId>base-server-api</artifactId>
  232. <version>${base.version}</version>
  233. </dependency>-->
  234. <dependency>
  235. <groupId>org.springframework.cloud</groupId>
  236. <artifactId>spring-cloud-openfeign-core</artifactId>
  237. <version>${openFeign.version}</version>
  238. </dependency>
  239. <!--客户端负载均衡loadbalancer-->
  240. <dependency>
  241. <groupId>org.springframework.cloud</groupId>
  242. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  243. <version>${loadbalancer.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.aspectj</groupId>
  247. <artifactId>aspectjweaver</artifactId>
  248. <version>1.9.6</version>
  249. </dependency>
  250. <!-- start lucene -->
  251. <dependency>
  252. <groupId>org.apache.lucene</groupId>
  253. <artifactId>lucene-core</artifactId>
  254. <version>${lucene.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.apache.lucene</groupId>
  258. <artifactId>lucene-queryparser</artifactId>
  259. <version>${lucene.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.apache.lucene</groupId>
  263. <artifactId>lucene-analyzers-common</artifactId>
  264. <version>${lucene.version}</version>
  265. </dependency>
  266. <!-- 中文分词器 -->
  267. <dependency>
  268. <groupId>org.apache.lucene</groupId>
  269. <artifactId>lucene-analyzers-smartcn</artifactId>
  270. <version>${lucene.version}</version>
  271. </dependency>
  272. <!-- end lucene -->
  273. <!-- FileUtil 文件工具类-->
  274. <dependency>
  275. <groupId>cn.hutool</groupId>
  276. <artifactId>hutool-core</artifactId>
  277. <version>${hutool.version}</version>
  278. </dependency>
  279. <!-- Sharding-JDBC -->
  280. <dependency>
  281. <groupId>org.apache.shardingsphere</groupId>
  282. <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
  283. <version>${sharding-jdbc.version}</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>orbit.base.server</groupId>
  287. <artifactId>base-biz-api</artifactId>
  288. <version>0.0.1</version>
  289. </dependency>
  290. <!-- 网关依赖 -->
  291. <dependency>
  292. <groupId>org.springframework.cloud</groupId>
  293. <artifactId>spring-cloud-starter-gateway</artifactId>
  294. <version>${gateway.version}</version>
  295. </dependency>
  296. <!-- JWT依赖 -->
  297. <dependency>
  298. <groupId>org.springframework.security</groupId>
  299. <artifactId>spring-security-jwt</artifactId>
  300. <version>${security-jwt.version}</version>
  301. </dependency>
  302. <dependency>
  303. <groupId>io.jsonwebtoken</groupId>
  304. <artifactId>jjwt</artifactId>
  305. <version>${jsonwebtoken.version}</version>
  306. </dependency>
  307. <!-- SpringBoot集成mybatis框架 -->
  308. <dependency>
  309. <groupId>org.mybatis.spring.boot</groupId>
  310. <artifactId>mybatis-spring-boot-starter</artifactId>
  311. <version>${mybatis-spring-boot.version}</version>
  312. </dependency>
  313. <dependency>
  314. <groupId>javax.servlet</groupId>
  315. <artifactId>javax.servlet-api</artifactId>
  316. <version>4.0.1</version>
  317. </dependency>
  318. <!-- 分页插件 -->
  319. <dependency>
  320. <groupId>com.github.pagehelper</groupId>
  321. <artifactId>pagehelper-spring-boot-starter</artifactId>
  322. <version>${pagehelper.boot.version}</version>
  323. <exclusions>
  324. <exclusion>
  325. <groupId>org.mybatis.spring.boot</groupId>
  326. <artifactId>mybatis-spring-boot-starter</artifactId>
  327. </exclusion>
  328. </exclusions>
  329. </dependency>
  330. </dependencies>
  331. </dependencyManagement>
  332. <build>
  333. <plugins>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-compiler-plugin</artifactId>
  337. <version>3.8.1</version>
  338. <configuration>
  339. <source>1.8</source>
  340. <target>1.8</target>
  341. <encoding>UTF-8</encoding>
  342. <annotationProcessorPaths>
  343. <path>
  344. <groupId>org.projectlombok</groupId>
  345. <artifactId>lombok</artifactId>
  346. <version>${lombok.version}</version>
  347. </path>
  348. <path>
  349. <groupId>org.mapstruct</groupId>
  350. <artifactId>mapstruct-processor</artifactId>
  351. <version>${mapstruct.version}</version>
  352. </path>
  353. </annotationProcessorPaths>
  354. </configuration>
  355. </plugin>
  356. <plugin>
  357. <groupId>org.apache.maven.plugins</groupId>
  358. <artifactId>maven-surefire-plugin</artifactId>
  359. <version>2.22.2</version>
  360. <configuration>
  361. <skipTests>true</skipTests>
  362. </configuration>
  363. </plugin>
  364. </plugins>
  365. </build>
  366. </project>