youlai-mall/youlai-gateway/pom.xml

153 lines
5.1 KiB
XML
Raw Normal View History

2020-06-24 18:20:09 +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">
<modelVersion>4.0.0</modelVersion>
2020-06-24 18:20:09 +08:00
<parent>
<artifactId>youlai-mall</artifactId>
<groupId>com.youlai</groupId>
<version>2.0.0</version>
2020-06-24 18:20:09 +08:00
</parent>
2020-06-28 23:40:56 +08:00
<artifactId>youlai-gateway</artifactId>
<packaging>jar</packaging>
2020-06-28 23:40:56 +08:00
<properties>
<youlai.version>2.0.0</youlai.version>
</properties>
2020-06-24 18:20:09 +08:00
<dependencies>
2021-04-01 18:08:29 +08:00
<!--Spring Cloud & Alibaba-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
2020-06-24 18:20:09 +08:00
<dependency>
<groupId>org.springframework.cloud</groupId>
2020-08-23 14:26:47 +08:00
<artifactId>spring-cloud-starter-gateway</artifactId>
2020-06-24 18:20:09 +08:00
</dependency>
2021-04-01 18:08:29 +08:00
<!-- 注册中心-->
2020-06-24 18:20:09 +08:00
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
2020-06-24 18:20:09 +08:00
</dependency>
2020-08-23 14:26:47 +08:00
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
2021-04-01 18:08:29 +08:00
<!-- 配置中心 -->
2020-06-24 18:20:09 +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资源服务器-->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-resource-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-jose</artifactId>
</dependency>
2021-04-04 17:11:21 +08:00
<!-- Sentinel流量控制、熔断降级 -->
<dependency>
2021-04-01 18:08:29 +08:00
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
2021-04-05 23:59:32 +08:00
2021-04-04 17:11:21 +08:00
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-datasource-nacos</artifactId>
</dependency>
2021-04-01 18:08:29 +08:00
<!-- Api文档 -->
<dependency>
2021-04-01 18:08:29 +08:00
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
2021-05-30 23:42:25 +08:00
2021-04-01 18:08:29 +08:00
<!-- 配置读取 -->
2021-01-27 15:45:03 +08:00
<dependency>
2021-03-12 01:18:30 +08:00
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
2021-01-27 15:45:03 +08:00
</dependency>
2021-02-25 20:08:21 +08:00
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>com.youlai</groupId>
<artifactId>common-core</artifactId>
</dependency>
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-redis</artifactId>
2021-02-25 20:08:21 +08:00
</dependency>
2021-06-01 08:22:02 +08:00
<dependency>
<groupId>com.youlai</groupId>
<artifactId>common-log</artifactId>
<version>${youlai.version}</version>
</dependency>
2020-06-24 18:20:09 +08:00
</dependencies>
<build>
2021-04-14 23:57:13 +08:00
<finalName>${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>
2020-12-04 23:53:01 +08:00
<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>
2020-12-04 23:53:01 +08:00
</configuration>
</plugin>
</plugins>
</build>
2020-08-23 14:26:47 +08:00
</project>