2021-02-28 23:46:25 +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-oms</artifactId>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
</parent>
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
<artifactId>oms-boot</artifactId>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- web环境 -->
|
2021-03-14 23:51:35 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- Spring Cloud & Alibaba -->
|
2021-02-28 23:46:25 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- 注册中心 -->
|
2021-02-28 23:46:25 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- 配置中心 -->
|
2021-02-28 23:46:25 +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
|
|
|
|
<!-- 单元测试 -->
|
2021-02-28 23:46:25 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- 分布式事务 -->
|
2021-02-28 23:46:25 +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
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
|
|
|
|
<artifactId>oms-api</artifactId>
|
|
|
|
|
<version>${youlai.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
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>
|
|
|
|
|
<artifactId>common-rabbitmq</artifactId>
|
2021-03-13 20:48:18 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
2021-02-28 23:46:25 +08:00
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<!--执行mvn package,即执行 mvn clean package docker:build-->
|
2021-03-23 06:39:45 +08:00
|
|
|
|
<!--<execution>
|
2021-02-28 23:46:25 +08:00
|
|
|
|
<id>build-image</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>build</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>-->
|
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
|
|
<configuration>
|
|
|
|
|
<!-- 镜像名称 -->
|
|
|
|
|
<imageName>${project.artifactId}</imageName>
|
|
|
|
|
<!-- 指定标签 -->
|
|
|
|
|
<imageTags>
|
|
|
|
|
<imageTag>latest</imageTag>
|
|
|
|
|
</imageTags>
|
|
|
|
|
<!-- 基础镜像-->
|
|
|
|
|
<baseImage>openjdk:8-jdk-alpine</baseImage>
|
|
|
|
|
|
|
|
|
|
<!-- 切换到容器工作目录-->
|
|
|
|
|
<workdir>/</workdir>
|
|
|
|
|
|
|
|
|
|
<entryPoint>["java","-jar","${project.build.finalName}.jar"]</entryPoint>
|
|
|
|
|
|
|
|
|
|
<!-- 指定远程 Docker API地址 -->
|
2021-03-23 06:39:45 +08:00
|
|
|
|
<dockerHost>https://www.gorun996.com:2376</dockerHost>
|
2021-02-28 23:46:25 +08:00
|
|
|
|
<!-- 指定tls证书的目录 -->
|
2021-03-23 06:39:45 +08:00
|
|
|
|
<dockerCertPath>C:\cert\docker\d.youlai.store</dockerCertPath>
|
2021-02-28 23:46:25 +08:00
|
|
|
|
|
|
|
|
|
<!-- 复制 jar包到docker容器指定目录-->
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<targetPath>/</targetPath>
|
|
|
|
|
<!-- 用于指定需要复制的根目录,${project.build.directory}表示target目录 -->
|
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
|
<!-- 用于指定需要复制的文件,${project.build.finalName}.jar就是打包后的target目录下的jar包名称 -->
|
|
|
|
|
<include>${project.build.finalName}.jar</include>
|
|
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
</project>
|