2021-02-25 20:08:21 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<parent>
|
|
|
|
<artifactId>mall-pms</artifactId>
|
|
|
|
<groupId>com.youlai</groupId>
|
2021-06-19 12:36:51 +08:00
|
|
|
<version>2.0.0</version>
|
2021-02-25 20:08:21 +08:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>pms-boot</artifactId>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
<!-- web环境 -->
|
2021-02-25 20:08:21 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
2021-02-25 20:08:21 +08:00
|
|
|
</dependency>
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
<!-- 读取配置 -->
|
2021-02-25 20:08:21 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
2021-02-25 20:08:21 +08:00
|
|
|
</dependency>
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
<!-- 单元测试 -->
|
2021-03-07 23:57:46 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
<scope>test</scope>
|
2021-03-07 23:57:46 +08:00
|
|
|
</dependency>
|
|
|
|
|
2021-02-25 20:08:21 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
2021-02-25 20:08:21 +08:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
2021-04-02 22:49:15 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
2021-02-25 20:08:21 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
<!-- 分布式事务Seata 指定Seata客户端版本和服务器一致 -->
|
2021-02-25 20:08:21 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>io.seata</groupId>
|
|
|
|
<artifactId>seata-all</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>io.seata</groupId>
|
|
|
|
<artifactId>seata-spring-boot-starter</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.seata</groupId>
|
|
|
|
<artifactId>seata-all</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.seata</groupId>
|
|
|
|
<artifactId>seata-spring-boot-starter</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
<!-- 商品feign接口 -->
|
2021-03-13 20:48:18 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
<artifactId>pms-api</artifactId>
|
|
|
|
<version>${youlai.version}</version>
|
2021-03-13 20:48:18 +08:00
|
|
|
</dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
2021-03-13 20:48:18 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
<artifactId>common-mybatis</artifactId>
|
2021-03-13 20:48:18 +08:00
|
|
|
</dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
2021-03-13 20:48:18 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
<artifactId>common-web</artifactId>
|
2021-03-13 20:48:18 +08:00
|
|
|
</dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
2021-03-13 20:48:18 +08:00
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
<artifactId>common-redis</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.youlai</groupId>
|
2021-06-11 01:18:27 +08:00
|
|
|
<artifactId>common-log</artifactId>
|
|
|
|
<version>${youlai.version}</version>
|
2021-04-01 18:08:29 +08:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
<artifactId>common-rabbitmq</artifactId>
|
2021-03-13 20:48:18 +08:00
|
|
|
</dependency>
|
2021-08-11 18:07:13 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
<artifactId>ums-api</artifactId>
|
|
|
|
<version>2.0.0</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2021-03-13 20:48:18 +08:00
|
|
|
|
2021-02-25 20:08:21 +08:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
2021-04-14 23:57:13 +08:00
|
|
|
<finalName>${artifactId}</finalName>
|
2021-06-07 01:49:41 +08:00
|
|
|
|
2021-02-25 20:08:21 +08:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
2021-06-07 01:49:41 +08:00
|
|
|
<version>1.2.2</version>
|
|
|
|
|
|
|
|
<!--将插件绑定在某个phase执行-->
|
2021-02-25 20:08:21 +08:00
|
|
|
<executions>
|
2021-06-07 01:49:41 +08:00
|
|
|
<execution>
|
2021-02-25 20:08:21 +08:00
|
|
|
<id>build-image</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>build</goal>
|
|
|
|
</goals>
|
2021-06-07 01:49:41 +08:00
|
|
|
</execution>
|
2021-02-25 20:08:21 +08:00
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<imageName>${project.artifactId}</imageName>
|
2021-06-07 01:49:41 +08:00
|
|
|
<!--指定标签-->
|
2021-02-25 20:08:21 +08:00
|
|
|
<imageTags>
|
|
|
|
<imageTag>latest</imageTag>
|
|
|
|
</imageTags>
|
2021-06-07 01:49:41 +08:00
|
|
|
<!-- 指定 Dockerfile 路径-->
|
|
|
|
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
|
|
|
<forceTags>true</forceTags>
|
2021-02-25 20:08:21 +08:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<targetPath>/</targetPath>
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
<include>${project.build.finalName}.jar</include>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</project>
|