mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
168 lines
5.6 KiB
XML
168 lines
5.6 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>2.0.0</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>youlai-auth</artifactId>
|
|
|
|
<properties>
|
|
<youlai.version>2.0.0</youlai.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- web环境 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 配置读取 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
</dependency>
|
|
|
|
<!--Spring Cloud & Alibaba -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 注册中心 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 配置中心 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- OAuth2 认证服务器-->
|
|
<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>
|
|
|
|
<!-- Sentinel流量控制、熔断降级 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
|
</dependency>
|
|
<!-- Sentinel规则持久化至Nacos配置 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.csp</groupId>
|
|
<artifactId>sentinel-datasource-nacos</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-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.github.binarywang</groupId>
|
|
<artifactId>weixin-java-miniapp</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Api文档 -->
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-micro-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.youlai</groupId>
|
|
<artifactId>common-log</artifactId>
|
|
<version>${youlai.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
<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.2.2</version>
|
|
|
|
<!--将插件绑定在某个阶段执行-->
|
|
<executions>
|
|
<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>
|
|
<!-- 指定 Dockerfile 路径-->
|
|
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
|
<forceTags>true</forceTags>
|
|
<resources>
|
|
<resource>
|
|
<targetPath>/</targetPath>
|
|
<directory>${project.build.directory}</directory>
|
|
<include>${project.build.finalName}.jar</include>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|