pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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.macro.mall</groupId>
  7. <artifactId>mall</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <modules>
  11. <module>mall-common</module>
  12. <module>mall-mbg</module>
  13. <module>mall-security</module>
  14. <module>mall-demo</module>
  15. <module>mall-admin</module>
  16. <module>mall-search</module>
  17. <module>mall-portal</module>
  18. </modules>
  19. <parent>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-parent</artifactId>
  22. <version>2.7.5</version>
  23. <relativePath/> <!-- lookup parent from repository -->
  24. </parent>
  25. <properties>
  26. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  28. <java.version>1.8</java.version>
  29. <skipTests>true</skipTests>
  30. <docker.host>http://192.168.3.101:2375</docker.host>
  31. <docker.maven.plugin.version>0.40.2</docker.maven.plugin.version>
  32. <pagehelper-starter.version>1.4.5</pagehelper-starter.version>
  33. <pagehelper.version>5.3.2</pagehelper.version>
  34. <druid.version>1.2.14</druid.version>
  35. <hutool.version>5.8.9</hutool.version>
  36. <springfox-swagger.version>3.0.0</springfox-swagger.version>
  37. <swagger-models.version>1.6.0</swagger-models.version>
  38. <swagger-annotations.version>1.6.0</swagger-annotations.version>
  39. <mybatis-generator.version>1.4.1</mybatis-generator.version>
  40. <mybatis.version>3.5.10</mybatis.version>
  41. <mysql-connector.version>8.0.29</mysql-connector.version>
  42. <spring-data-commons.version>2.7.5</spring-data-commons.version>
  43. <jjwt.version>0.9.1</jjwt.version>
  44. <aliyun-oss.version>2.5.0</aliyun-oss.version>
  45. <alipay-sdk.version>4.38.61.ALL</alipay-sdk.version>
  46. <logstash-logback.version>7.2</logstash-logback.version>
  47. <minio.version>8.4.5</minio.version>
  48. <jaxb-api.version>2.3.1</jaxb-api.version>
  49. <mall-common.version>1.0-SNAPSHOT</mall-common.version>
  50. <mall-mbg.version>1.0-SNAPSHOT</mall-mbg.version>
  51. <mall-security.version>1.0-SNAPSHOT</mall-security.version>
  52. </properties>
  53. <dependencies>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-actuator</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-aop</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>cn.hutool</groupId>
  69. <artifactId>hutool-all</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.projectlombok</groupId>
  73. <artifactId>lombok</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-configuration-processor</artifactId>
  78. <optional>true</optional>
  79. </dependency>
  80. <!--解决JDK 11 兼容性问题-->
  81. <dependency>
  82. <groupId>javax.xml.bind</groupId>
  83. <artifactId>jaxb-api</artifactId>
  84. <version>${jaxb-api.version}</version>
  85. </dependency>
  86. </dependencies>
  87. <dependencyManagement>
  88. <dependencies>
  89. <!--mall通用模块-->
  90. <dependency>
  91. <groupId>com.macro.mall</groupId>
  92. <artifactId>mall-common</artifactId>
  93. <version>${mall-common.version}</version>
  94. </dependency>
  95. <!--mall中MBG生成模块-->
  96. <dependency>
  97. <groupId>com.macro.mall</groupId>
  98. <artifactId>mall-mbg</artifactId>
  99. <version>${mall-mbg.version}</version>
  100. </dependency>
  101. <!--mall安全模块-->
  102. <dependency>
  103. <groupId>com.macro.mall</groupId>
  104. <artifactId>mall-security</artifactId>
  105. <version>${mall-security.version}</version>
  106. </dependency>
  107. <!--MyBatis分页插件starter-->
  108. <dependency>
  109. <groupId>com.github.pagehelper</groupId>
  110. <artifactId>pagehelper-spring-boot-starter</artifactId>
  111. <version>${pagehelper-starter.version}</version>
  112. </dependency>
  113. <!--MyBatis分页插件-->
  114. <dependency>
  115. <groupId>com.github.pagehelper</groupId>
  116. <artifactId>pagehelper</artifactId>
  117. <version>${pagehelper.version}</version>
  118. </dependency>
  119. <!--集成druid连接池-->
  120. <dependency>
  121. <groupId>com.alibaba</groupId>
  122. <artifactId>druid-spring-boot-starter</artifactId>
  123. <version>${druid.version}</version>
  124. </dependency>
  125. <!--Hutool Java工具包-->
  126. <dependency>
  127. <groupId>cn.hutool</groupId>
  128. <artifactId>hutool-all</artifactId>
  129. <version>${hutool.version}</version>
  130. </dependency>
  131. <!--Swagger-UI API文档生产工具-->
  132. <dependency>
  133. <groupId>io.springfox</groupId>
  134. <artifactId>springfox-boot-starter</artifactId>
  135. <version>${springfox-swagger.version}</version>
  136. </dependency>
  137. <!--解决Swagger访问主页时的NumberFormatException问题-->
  138. <dependency>
  139. <groupId>io.swagger</groupId>
  140. <artifactId>swagger-models</artifactId>
  141. <version>${swagger-models.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>io.swagger</groupId>
  145. <artifactId>swagger-annotations</artifactId>
  146. <version>${swagger-annotations.version}</version>
  147. </dependency>
  148. <!-- MyBatis 生成器 -->
  149. <dependency>
  150. <groupId>org.mybatis.generator</groupId>
  151. <artifactId>mybatis-generator-core</artifactId>
  152. <version>${mybatis-generator.version}</version>
  153. </dependency>
  154. <!-- MyBatis-->
  155. <dependency>
  156. <groupId>org.mybatis</groupId>
  157. <artifactId>mybatis</artifactId>
  158. <version>${mybatis.version}</version>
  159. </dependency>
  160. <!--Mysql数据库驱动-->
  161. <dependency>
  162. <groupId>mysql</groupId>
  163. <artifactId>mysql-connector-java</artifactId>
  164. <version>${mysql-connector.version}</version>
  165. </dependency>
  166. <!--SpringData工具包-->
  167. <dependency>
  168. <groupId>org.springframework.data</groupId>
  169. <artifactId>spring-data-commons</artifactId>
  170. <version>${spring-data-commons.version}</version>
  171. </dependency>
  172. <!--JWT(Json Web Token)登录支持-->
  173. <dependency>
  174. <groupId>io.jsonwebtoken</groupId>
  175. <artifactId>jjwt</artifactId>
  176. <version>${jjwt.version}</version>
  177. </dependency>
  178. <!-- 阿里云OSS -->
  179. <dependency>
  180. <groupId>com.aliyun.oss</groupId>
  181. <artifactId>aliyun-sdk-oss</artifactId>
  182. <version>${aliyun-oss.version}</version>
  183. </dependency>
  184. <!--集成logstash-->
  185. <dependency>
  186. <groupId>net.logstash.logback</groupId>
  187. <artifactId>logstash-logback-encoder</artifactId>
  188. <version>${logstash-logback.version}</version>
  189. </dependency>
  190. <!--MinIO JAVA SDK-->
  191. <dependency>
  192. <groupId>io.minio</groupId>
  193. <artifactId>minio</artifactId>
  194. <version>${minio.version}</version>
  195. </dependency>
  196. </dependencies>
  197. </dependencyManagement>
  198. <build>
  199. <pluginManagement>
  200. <plugins>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. </plugin>
  205. <plugin>
  206. <groupId>io.fabric8</groupId>
  207. <artifactId>docker-maven-plugin</artifactId>
  208. <version>${docker.maven.plugin.version}</version>
  209. <executions>
  210. <!--如果想在项目打包时构建镜像添加-->
  211. <execution>
  212. <id>build-image</id>
  213. <phase>package</phase>
  214. <goals>
  215. <goal>build</goal>
  216. </goals>
  217. </execution>
  218. </executions>
  219. <configuration>
  220. <!-- Docker 远程管理地址-->
  221. <dockerHost>${docker.host}</dockerHost>
  222. <images>
  223. <image>
  224. <!--定义镜像名称-->
  225. <name>mall/${project.name}:${project.version}</name>
  226. <!--定义镜像构建行为-->
  227. <build>
  228. <!--定义基础镜像-->
  229. <from>openjdk:8</from>
  230. <args>
  231. <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
  232. </args>
  233. <!--定义哪些文件拷贝到容器中-->
  234. <assembly>
  235. <!--定义拷贝到容器的目录-->
  236. <targetDir>/</targetDir>
  237. <!--只拷贝生成的jar包-->
  238. <descriptorRef>artifact</descriptorRef>
  239. </assembly>
  240. <!--定义容器启动命令-->
  241. <entryPoint>["java", "-jar","-Dspring.profiles.active=prod","/${project.build.finalName}.jar"]</entryPoint>
  242. <!--定义维护者-->
  243. <maintainer>macrozheng</maintainer>
  244. </build>
  245. </image>
  246. </images>
  247. </configuration>
  248. </plugin>
  249. </plugins>
  250. </pluginManagement>
  251. </build>
  252. <!--使用aliyun的Maven镜像源提升下载速度-->
  253. <repositories>
  254. <repository>
  255. <id>aliyunmaven</id>
  256. <name>aliyun</name>
  257. <url>https://maven.aliyun.com/repository/public</url>
  258. </repository>
  259. <repository>
  260. <id>central2</id>
  261. <name>central2</name>
  262. <url>https://repo1.maven.org/maven2/</url>
  263. </repository>
  264. </repositories>
  265. </project>