pom.xml 3.5 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>
        <artifactId>whatsmars-dubbo</artifactId>
武汉红喜's avatar
武汉红喜 已提交
7
        <groupId>org.hongxi</groupId>
武汉红喜's avatar
武汉红喜 已提交
8
        <version>Rocket.S6</version>
S
shenhongxi 已提交
9
    </parent>
武汉红喜's avatar
武汉红喜 已提交
10
    <modelVersion>4.0.0</modelVersion>
S
shenhongxi 已提交
11 12 13 14 15

    <artifactId>whatsmars-dubbo-consumer</artifactId>
    <packaging>jar</packaging>
    <name>${project.artifactId}</name>
    <description>The demo consumer module of dubbo project</description>
武汉红喜's avatar
武汉红喜 已提交
16

S
shenhongxi 已提交
17 18
    <dependencies>
        <dependency>
武汉红喜's avatar
武汉红喜 已提交
19
            <groupId>org.hongxi</groupId>
S
shenhongxi 已提交
20
            <artifactId>whatsmars-dubbo-api</artifactId>
武汉红喜's avatar
武汉红喜 已提交
21
            <version>${project.version}</version>
S
shenhongxi 已提交
22 23
        </dependency>
        <dependency>
24
            <groupId>org.apache.dubbo</groupId>
S
shenhongxi 已提交
25 26
            <artifactId>dubbo</artifactId>
        </dependency>
S
shenhongxi 已提交
27 28 29 30
        <dependency>
            <groupId>com.101tec</groupId>
            <artifactId>zkclient</artifactId>
        </dependency>
武汉红喜's avatar
武汉红喜 已提交
31 32
        <dependency>
            <groupId>org.apache.curator</groupId>
33
            <artifactId>curator-recipes</artifactId>
武汉红喜's avatar
武汉红喜 已提交
34 35 36 37 38 39 40
        </dependency>

        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
        </dependency>
        <dependency>
41 42
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
武汉红喜's avatar
武汉红喜 已提交
43 44 45 46 47
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
武汉红喜's avatar
武汉红喜 已提交
48

武汉红喜's avatar
netty4  
武汉红喜 已提交
49 50 51 52 53
        <!-- netty4 -->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
        </dependency>
S
shenhongxi 已提交
54 55
    </dependencies>

武汉红喜's avatar
武汉红喜 已提交
56 57 58 59 60 61 62 63
    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
武汉红喜's avatar
武汉红喜 已提交
64
            <!-- 生成可执行jar和lib文件夹 -->
武汉红喜's avatar
武汉红喜 已提交
65 66 67 68 69 70 71
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <addMavenDescriptor>true</addMavenDescriptor>
                        <manifest>
武汉红喜's avatar
武汉红喜 已提交
72 73
                            <addClasspath>true</addClasspath>
                            <classpathPrefix>lib/</classpathPrefix>
武汉红喜's avatar
武汉红喜 已提交
74 75 76 77 78
                            <mainClass>org.hongxi.whatsmars.dubbo.demo.consumer.DemoConsumer</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
武汉红喜's avatar
武汉红喜 已提交
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
武汉红喜's avatar
武汉红喜 已提交
95 96 97
        </plugins>
    </build>

S
shenhongxi 已提交
98 99

</project>