pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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.poyee</groupId>
  7. <artifactId>b2b-order-service</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>order-client</module>
  12. <module>order-web</module>
  13. <module>order-common</module>
  14. </modules>
  15. <parent>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-starter-parent</artifactId>
  18. <version>2.1.17.RELEASE</version>
  19. </parent>
  20. <properties>
  21. <maven.compiler.source>8</maven.compiler.source>
  22. <maven.compiler.target>8</maven.compiler.target>
  23. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24. <maven.compiler.source>8</maven.compiler.source>
  25. <maven.compiler.target>8</maven.compiler.target>
  26. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27. <spring.cloud.version>Greenwich.SR6</spring.cloud.version>
  28. <mybatis.plus.version>3.4.3.4</mybatis.plus.version>
  29. <knife4j.version>2.0.4</knife4j.version>
  30. <swagger.version>2.9.2</swagger.version>
  31. <redisson.version>3.17.6</redisson.version>
  32. <lombok.version>1.18.30</lombok.version>
  33. <fastjson.version>1.2.83</fastjson.version>
  34. <pagehelper.version>1.4.1</pagehelper.version>
  35. <mapstruct.version>1.4.2.Final</mapstruct.version>
  36. <commons.lang3.version>3.12.0</commons.lang3.version>
  37. <jwt.version>3.3.0</jwt.version>
  38. <hutoll.version>5.8.11</hutoll.version>
  39. <mapstruct.lombok-version>0.2.0</mapstruct.lombok-version>
  40. </properties>
  41. <dependencyManagement>
  42. <dependencies>
  43. <dependency>
  44. <groupId>org.hibernate.validator</groupId>
  45. <artifactId>hibernate-validator</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.mapstruct</groupId>
  49. <artifactId>mapstruct</artifactId>
  50. <version>${mapstruct.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.mapstruct</groupId>
  54. <artifactId>mapstruct-processor</artifactId>
  55. <version>${mapstruct.version}</version>
  56. <scope>provided</scope>
  57. </dependency>
  58. <!-- Spring Cloud -->
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-dependencies</artifactId>
  62. <version>${spring.cloud.version}</version>
  63. <type>pom</type>
  64. <scope>import</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>cn.hutool</groupId>
  68. <artifactId>hutool-all</artifactId>
  69. <version>${hutoll.version}</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.auth0</groupId>
  73. <artifactId>java-jwt</artifactId>
  74. <version>${jwt.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok-mapstruct-binding</artifactId>
  79. <version>${mapstruct.lombok-version}</version>
  80. </dependency>
  81. <!-- 内部模块 -->
  82. <dependency>
  83. <groupId>com.poyee</groupId>
  84. <artifactId>order-common</artifactId>
  85. <version>${project.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.poyee</groupId>
  89. <artifactId>order-client</artifactId>
  90. <version>${project.version}</version>
  91. </dependency>
  92. <!-- MyBatis-Plus -->
  93. <dependency>
  94. <groupId>com.baomidou</groupId>
  95. <artifactId>mybatis-plus-boot-starter</artifactId>
  96. <version>${mybatis.plus.version}</version>
  97. </dependency>
  98. <!-- Knife4j -->
  99. <dependency>
  100. <groupId>com.github.xiaoymin</groupId>
  101. <artifactId>knife4j-spring-boot-starter</artifactId>
  102. <version>${knife4j.version}</version>
  103. </dependency>
  104. <!-- Redisson -->
  105. <dependency>
  106. <groupId>org.redisson</groupId>
  107. <artifactId>redisson-spring-boot-starter</artifactId>
  108. <version>${redisson.version}</version>
  109. </dependency>
  110. <!-- Lombok -->
  111. <dependency>
  112. <groupId>org.projectlombok</groupId>
  113. <artifactId>lombok</artifactId>
  114. <version>${lombok.version}</version>
  115. <scope>provided</scope>
  116. </dependency>
  117. <!-- FastJSON -->
  118. <dependency>
  119. <groupId>com.alibaba</groupId>
  120. <artifactId>fastjson</artifactId>
  121. <version>${fastjson.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.github.pagehelper</groupId>
  125. <artifactId>pagehelper-spring-boot-starter</artifactId>
  126. <version>${pagehelper.version}</version>
  127. <exclusions>
  128. <exclusion>
  129. <groupId>org.mybatis</groupId>
  130. <artifactId>mybatis</artifactId>
  131. </exclusion>
  132. <exclusion>
  133. <groupId>org.mybatis</groupId>
  134. <artifactId>mybatis-spring</artifactId>
  135. </exclusion>
  136. </exclusions>
  137. </dependency>
  138. <!-- Commons Lang3 -->
  139. <dependency>
  140. <groupId>org.apache.commons</groupId>
  141. <artifactId>commons-lang3</artifactId>
  142. <version>${commons.lang3.version}</version>
  143. </dependency>
  144. </dependencies>
  145. </dependencyManagement>
  146. <build>
  147. <pluginManagement>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.springframework.boot</groupId>
  151. <artifactId>spring-boot-maven-plugin</artifactId>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-compiler-plugin</artifactId>
  156. <configuration>
  157. <annotationProcessorPaths>
  158. <!-- ① Lombok 必须在 MapStruct 之前 -->
  159. <path>
  160. <groupId>org.projectlombok</groupId>
  161. <artifactId>lombok</artifactId>
  162. <version>${lombok.version}</version>
  163. </path>
  164. <!-- ② 绑定器,确保顺序 -->
  165. <path>
  166. <groupId>org.projectlombok</groupId>
  167. <artifactId>lombok-mapstruct-binding</artifactId>
  168. <version>0.2.0</version>
  169. </path>
  170. <!-- ③ MapStruct 最后执行,此时 getter 已生成 -->
  171. <path>
  172. <groupId>org.mapstruct</groupId>
  173. <artifactId>mapstruct-processor</artifactId>
  174. <version>${mapstruct.version}</version>
  175. </path>
  176. </annotationProcessorPaths>
  177. </configuration>
  178. </plugin>
  179. </plugins>
  180. </pluginManagement>
  181. </build>
  182. </project>