2019-01-30 17:06:23 +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>SpringBlade</artifactId>
|
|
|
|
<groupId>org.springblade</groupId>
|
2019-10-13 00:42:13 +08:00
|
|
|
<version>2.5.1</version>
|
2019-01-30 17:06:23 +08:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>blade-gateway</artifactId>
|
|
|
|
<name>${project.artifactId}</name>
|
|
|
|
<version>${blade.project.version}</version>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<!--Blade-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springblade</groupId>
|
|
|
|
<artifactId>blade-core-launch</artifactId>
|
|
|
|
<version>${blade.tool.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springblade</groupId>
|
|
|
|
<artifactId>blade-common</artifactId>
|
|
|
|
<version>${blade.project.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.springblade</groupId>
|
|
|
|
<artifactId>blade-core-launch</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<!--Spring-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-gateway</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-data-redis-reactive</artifactId>
|
|
|
|
</dependency>
|
2019-02-13 17:11:47 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>de.codecentric</groupId>
|
|
|
|
<artifactId>spring-boot-admin-starter-client</artifactId>
|
|
|
|
<version>${spring.boot.admin.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>commons-logging</groupId>
|
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2019-08-08 14:00:15 +08:00
|
|
|
<!-- Nacos -->
|
2019-02-13 17:11:47 +08:00
|
|
|
<dependency>
|
2019-08-08 14:00:15 +08:00
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
2019-02-13 17:11:47 +08:00
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
<version>${alibaba.cloud.version}</version>
|
|
|
|
</dependency>
|
2019-01-30 17:06:23 +08:00
|
|
|
<dependency>
|
2019-08-08 14:00:15 +08:00
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
2019-02-13 17:11:47 +08:00
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
|
<version>${alibaba.cloud.version}</version>
|
2019-01-30 17:06:23 +08:00
|
|
|
</dependency>
|
2019-10-13 00:42:13 +08:00
|
|
|
<!-- JWT -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
|
|
<artifactId>jjwt</artifactId>
|
|
|
|
<version>0.9.1</version>
|
|
|
|
</dependency>
|
2019-01-30 17:06:23 +08:00
|
|
|
<!--Swagger-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
|
<version>${swagger.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>io.swagger</groupId>
|
|
|
|
<artifactId>swagger-models</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.swagger</groupId>
|
|
|
|
<artifactId>swagger-models</artifactId>
|
|
|
|
<version>${swagger.models.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--<dependency>
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
|
<version>${swagger.version}</version>
|
|
|
|
</dependency>-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
|
<artifactId>swagger-bootstrap-ui</artifactId>
|
|
|
|
<version>${swagger.bootstrapui.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.spotify</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<version>${docker.plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
|
|
|
|
<dockerDirectory>${project.basedir}</dockerDirectory>
|
|
|
|
<dockerHost>${docker.registry.host}</dockerHost>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<targetPath>/</targetPath>
|
|
|
|
<directory>${project.build.directory}</directory>
|
|
|
|
<include>${project.build.finalName}.jar</include>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<registryUrl>${docker.registry.url}</registryUrl>
|
|
|
|
<serverId>${docker.registry.url}</serverId>
|
|
|
|
<pushImage>true</pushImage>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2019-05-05 10:01:20 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
2019-09-23 17:56:34 +08:00
|
|
|
<!--suppress UnresolvedMavenProperty -->
|
2019-05-05 10:01:20 +08:00
|
|
|
<copy overwrite="true"
|
|
|
|
tofile="${session.executionRootDirectory}/target/${artifactId}.jar"
|
|
|
|
file="${project.build.directory}/${artifactId}.jar" />
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2019-01-30 17:06:23 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</project>
|