You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.1 KiB
XML
85 lines
3.1 KiB
XML
|
2 years ago
|
<?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>
|
||
|
|
|
||
|
|
<groupId>com.springboot.cloud</groupId>
|
||
|
|
<artifactId>gateway-web</artifactId>
|
||
|
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
|
<packaging>jar</packaging>
|
||
|
|
|
||
|
|
<name>gateway-web</name>
|
||
|
|
<description>Demo Gateway Api project for Spring Boot</description>
|
||
|
|
|
||
|
|
<parent>
|
||
|
|
<groupId>com.springboot.cloud</groupId>
|
||
|
|
<artifactId>gateway</artifactId>
|
||
|
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
|
</parent>
|
||
|
|
|
||
|
|
<dependencies>
|
||
|
|
<!--core基础类库-->
|
||
|
|
<dependency>
|
||
|
|
<groupId>com.springboot.cloud</groupId>
|
||
|
|
<artifactId>core</artifactId>
|
||
|
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
|
</dependency>
|
||
|
|
<!--api网关-->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.cloud</groupId>
|
||
|
|
<artifactId>spring-cloud-starter-gateway</artifactId>
|
||
|
|
</dependency>
|
||
|
|
<!--redis限流-->
|
||
|
|
<dependency>
|
||
|
|
<groupId>org.springframework.boot</groupId>
|
||
|
|
<artifactId>spring-boot-starter-data-redis-reactive</artifactId>
|
||
|
|
</dependency>
|
||
|
|
<!--swagger文档-->
|
||
|
|
<dependency>
|
||
|
|
<groupId>io.springfox</groupId>
|
||
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
||
|
|
<version>2.9.2</version>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>io.springfox</groupId>
|
||
|
|
<artifactId>springfox-swagger2</artifactId>
|
||
|
|
<version>2.9.2</version>
|
||
|
|
</dependency>
|
||
|
|
<!--网关签权客户端-->
|
||
|
|
<dependency>
|
||
|
|
<groupId>com.springboot.cloud</groupId>
|
||
|
|
<artifactId>authentication-client</artifactId>
|
||
|
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
|
</dependency>
|
||
|
|
<dependency>
|
||
|
|
<groupId>io.jsonwebtoken</groupId>
|
||
|
|
<artifactId>jjwt</artifactId>
|
||
|
|
<version>0.9.1</version>
|
||
|
|
</dependency>
|
||
|
|
</dependencies>
|
||
|
|
|
||
|
|
<build>
|
||
|
|
<plugins>
|
||
|
|
<!--docker镜像build插件-->
|
||
|
|
<plugin>
|
||
|
|
<groupId>com.spotify</groupId>
|
||
|
|
<artifactId>docker-maven-plugin</artifactId>
|
||
|
|
<version>1.2.0</version>
|
||
|
|
<configuration>
|
||
|
|
<!-- 注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功 -->
|
||
|
|
<imageName>cike/${project.artifactId}</imageName>
|
||
|
|
<dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
||
|
|
<rm>true</rm>
|
||
|
|
<resources>
|
||
|
|
<resource>
|
||
|
|
<targetPath>/</targetPath>
|
||
|
|
<directory>${project.build.directory}</directory>
|
||
|
|
<include>${project.build.finalName}.jar</include>
|
||
|
|
</resource>
|
||
|
|
</resources>
|
||
|
|
</configuration>
|
||
|
|
</plugin>
|
||
|
|
</plugins>
|
||
|
|
</build>
|
||
|
|
</project>
|