mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
204 lines
7.4 KiB
XML
204 lines
7.4 KiB
XML
<?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>
|
||
<version>1.0.0</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>youlai-auth</artifactId>
|
||
|
||
<properties>
|
||
<youlai.version>1.0.0</youlai.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.youlai</groupId>
|
||
<artifactId>ums-api</artifactId>
|
||
<version>${youlai.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.youlai</groupId>
|
||
<artifactId>admin-api</artifactId>
|
||
<version>${youlai.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.youlai</groupId>
|
||
<artifactId>common-mybatis</artifactId>
|
||
<version>${youlai.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.youlai</groupId>
|
||
<artifactId>common-web</artifactId>
|
||
<version>${youlai.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.youlai</groupId>
|
||
<artifactId>common-core</artifactId>
|
||
<version>${youlai.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.youlai</groupId>
|
||
<artifactId>common-redis</artifactId>
|
||
<version>${youlai.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||
</dependency>
|
||
<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>
|
||
|
||
<dependency>
|
||
<groupId>com.github.binarywang</groupId>
|
||
<artifactId>weixin-java-miniapp</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||
</dependency>
|
||
|
||
<!-- spring cloud 2020.0.0内置的openfeign3.0.0和spring cloud alibaba框架nacos、seata冲突临时解决方案-->
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||
<version>2.2.6.RELEASE</version>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-openfeign-core</artifactId>
|
||
</exclusion>
|
||
<exclusion>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-commons</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter</artifactId>
|
||
<version>2.2.6.RELEASE</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-openfeign-core</artifactId>
|
||
<version>2.2.6.RELEASE</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-commons</artifactId>
|
||
<version>2.2.6.RELEASE</version>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>com.github.xiaoymin</groupId>
|
||
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>com.github.xiaoymin</groupId>
|
||
<artifactId>knife4j-spring-ui</artifactId>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<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-->
|
||
<!--<execution>
|
||
<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地址 -->
|
||
<dockerHost>https://b.youlai.store:2376</dockerHost>
|
||
<!-- 指定tls证书的目录 -->
|
||
<dockerCertPath>C:\cert\docker\b.youlai.store</dockerCertPath>
|
||
|
||
<!-- 复制 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>
|