pom.xml 2.8 KB
Newer Older
S
shenhongxi 已提交
1 2 3 4 5 6
<?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>
武汉红喜's avatar
武汉红喜 已提交
7
        <groupId>org.hongxi</groupId>
武汉红喜's avatar
武汉红喜 已提交
8 9
        <artifactId>whatsmars-spring-cloud</artifactId>
        <version>1.0-SNAPSHOT</version>
S
shenhongxi 已提交
10 11
    </parent>

武汉红喜's avatar
武汉红喜 已提交
12 13
    <modelVersion>4.0.0</modelVersion>

武汉红喜's avatar
rename  
武汉红喜 已提交
14
    <artifactId>whatsmars-cloud-consumer</artifactId>
武汉红喜's avatar
武汉红喜 已提交
15 16
    <name>${project.artifactId}</name>

S
shenhongxi 已提交
17
    <properties>
武汉红喜's avatar
武汉红喜 已提交
18
        <start-class>org.hongxi.whatsmars.cloud.consumer.ConsumerApplication</start-class>
S
shenhongxi 已提交
19 20 21 22 23
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
武汉红喜's avatar
hystrix  
武汉红喜 已提交
24
            <artifactId>spring-cloud-starter-eureka</artifactId>
S
shenhongxi 已提交
25
        </dependency>
S
shenhongxi 已提交
26 27 28 29
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-feign</artifactId>
        </dependency>
武汉红喜's avatar
hystrix  
武汉红喜 已提交
30 31 32 33 34 35 36 37
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-hystrix</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-ribbon</artifactId>
        </dependency>
S
shenhongxi 已提交
38

S
shenhongxi 已提交
39 40 41 42 43 44 45 46 47
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
S
build  
shenhongxi 已提交
48 49 50 51 52 53 54
        <finalName>${project.artifactId}</finalName>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
S
shenhongxi 已提交
55 56 57 58
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
S
build  
shenhongxi 已提交
59 60 61 62
                <dependencies>
                    <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>springloaded</artifactId>
63
                        <version>${springloaded.version}</version>
S
build  
shenhongxi 已提交
64 65
                    </dependency>
                </dependencies>
武汉红喜's avatar
武汉红喜 已提交
66 67 68 69 70 71 72 73 74 75 76 77
                <!-- POM不是继承spring-boot-starter-parent的话,需要下面的指定 -->
                <configuration>
                    <mainClass>${start-class}</mainClass>
                    <layout>ZIP</layout>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
S
shenhongxi 已提交
78 79 80 81 82
            </plugin>
        </plugins>
    </build>

</project>