forked from GitLink/springcloud-mall
115 lines
4.4 KiB
XML
115 lines
4.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>shop</artifactId>
|
||
<groupId>com.adlx.dingdong</groupId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>api-gateway</artifactId>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.adlx.dingdong</groupId>
|
||
<artifactId>user-service-api</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.adlx.dingdong</groupId>
|
||
<artifactId>product-service-api</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-zuul</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-hystrix</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-security</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.security.oauth</groupId>
|
||
<artifactId>spring-security-oauth2</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
<!--<dependency>-->
|
||
<!--<groupId>org.springframework.session</groupId>-->
|
||
<!--<artifactId>spring-session-data-redis</artifactId>-->
|
||
<!--</dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.15</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.aspectj</groupId>
|
||
<artifactId>aspectjrt</artifactId>
|
||
<version>${aspectj.version}</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>repackage</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- docker的maven插件,官网:https://github.com/spotify/docker-maven-plugin -->
|
||
<plugin>
|
||
<groupId>com.spotify</groupId>
|
||
<artifactId>docker-maven-plugin</artifactId>
|
||
<version>0.4.13</version>
|
||
<configuration>
|
||
<!-- 注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功 -->
|
||
<!-- 详见:https://github.com/spotify/docker-maven-plugin Invalid repository name ... only [a-z0-9-_.] are allowed-->
|
||
<imageName>${project.name}:${project.version}</imageName>
|
||
<baseImage>java</baseImage>
|
||
<entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
|
||
<resources>
|
||
<resource>
|
||
<targetPath>/</targetPath>
|
||
<directory>${project.build.directory}</directory>
|
||
<include>${project.build.finalName}.jar</include>
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project> |