2020-09-01 00:30:35 +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>youlai-mall</artifactId>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2021-01-27 20:17:15 +08:00
|
|
|
|
<version>1.0.0</version>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</parent>
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
<artifactId>youlai-auth</artifactId>
|
|
|
|
|
|
|
|
|
|
<properties>
|
2021-01-27 20:17:15 +08:00
|
|
|
|
<youlai.version>1.0.0</youlai.version>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
|
|
|
|
|
<!-- web环境 -->
|
2021-01-26 20:17:51 +08:00
|
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
2021-01-26 20:17:51 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- 配置读取 -->
|
2021-03-12 01:18:30 +08:00
|
|
|
|
<dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
2021-03-12 01:18:30 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!--Spring Cloud & Alibaba -->
|
2021-03-17 22:39:16 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- 注册中心 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
2021-03-17 22:39:16 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-03-12 01:18:30 +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
|
|
|
|
<!-- OAuth2 认证服务器-->
|
2021-03-12 01:18:30 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.security.oauth.boot</groupId>
|
|
|
|
|
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
|
<artifactId>spring-security-oauth2-jose</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
2020-10-09 20:09:30 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2020-10-31 23:47:11 +08:00
|
|
|
|
<artifactId>ums-api</artifactId>
|
|
|
|
|
<version>${youlai.version}</version>
|
2020-10-09 20:09:30 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2020-10-31 23:47:11 +08:00
|
|
|
|
<artifactId>admin-api</artifactId>
|
|
|
|
|
<version>${youlai.version}</version>
|
2020-10-09 20:09:30 +08:00
|
|
|
|
</dependency>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
|
2020-09-17 19:53:26 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2020-11-18 17:14:47 +08:00
|
|
|
|
<artifactId>common-mybatis</artifactId>
|
2020-10-31 23:47:11 +08:00
|
|
|
|
<version>${youlai.version}</version>
|
2020-09-17 19:53:26 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2020-09-01 00:30:35 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2020-11-05 01:13:51 +08:00
|
|
|
|
<artifactId>common-web</artifactId>
|
2020-10-31 23:47:11 +08:00
|
|
|
|
<version>${youlai.version}</version>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</dependency>
|
2021-04-01 18:08:29 +08:00
|
|
|
|
|
2020-09-01 00:30:35 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2020-11-05 01:13:51 +08:00
|
|
|
|
<artifactId>common-core</artifactId>
|
2020-10-31 23:47:11 +08:00
|
|
|
|
<version>${youlai.version}</version>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.youlai</groupId>
|
2020-11-05 01:13:51 +08:00
|
|
|
|
<artifactId>common-redis</artifactId>
|
2020-10-31 23:47:11 +08:00
|
|
|
|
<version>${youlai.version}</version>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
2021-03-12 01:18:30 +08:00
|
|
|
|
<groupId>com.github.binarywang</groupId>
|
|
|
|
|
<artifactId>weixin-java-miniapp</artifactId>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</dependency>
|
2020-10-07 22:34:06 +08:00
|
|
|
|
|
2021-04-01 18:08:29 +08:00
|
|
|
|
<!-- Api文档 -->
|
2020-10-07 22:34:06 +08:00
|
|
|
|
<dependency>
|
2021-03-12 01:18:30 +08:00
|
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
|
|
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
|
2020-10-07 22:34:06 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
2021-01-30 23:51:04 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
2020-12-05 12:17:09 +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-10 20:14:44 +08:00
|
|
|
|
<!--<execution>
|
2020-12-05 12:17:09 +08:00
|
|
|
|
<id>build-image</id>
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>build</goal>
|
|
|
|
|
</goals>
|
2021-03-10 20:14:44 +08:00
|
|
|
|
</execution>-->
|
2020-12-05 12:17:09 +08:00
|
|
|
|
</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-22 00:53:29 +08:00
|
|
|
|
<dockerHost>https://f.youlai.store:2376</dockerHost>
|
2020-12-07 22:44:05 +08:00
|
|
|
|
<!-- 指定tls证书的目录 -->
|
2021-03-08 01:04:41 +08:00
|
|
|
|
<dockerCertPath>C:\cert\docker\f.youlai.store</dockerCertPath>
|
2020-12-05 12:17:09 +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>
|
2020-09-01 00:30:35 +08:00
|
|
|
|
</project>
|