pom.xml 4.1 KB
Newer Older
S
shenhongxi 已提交
1 2 3 4
<?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">
武汉红喜's avatar
武汉红喜 已提交
5 6
    <modelVersion>4.0.0</modelVersion>

S
shenhongxi 已提交
7 8
    <parent>
        <artifactId>whatsmars-dubbo</artifactId>
武汉红喜's avatar
武汉红喜 已提交
9
        <groupId>org.hongxi</groupId>
武汉红喜's avatar
武汉红喜 已提交
10
        <version>Rocket.S4</version>
S
shenhongxi 已提交
11 12 13 14 15 16
    </parent>

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

S
shenhongxi 已提交
18 19 20
    <properties>
        <skip_maven_deploy>false</skip_maven_deploy>
    </properties>
武汉红喜's avatar
武汉红喜 已提交
21

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

        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
        </dependency>
        <dependency>
46 47
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
武汉红喜's avatar
武汉红喜 已提交
48 49 50 51 52
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
武汉红喜's avatar
武汉红喜 已提交
53 54 55 56 57 58 59 60 61 62

        <!-- for hessian protocol -->
        <dependency>
            <groupId>com.caucho</groupId>
            <artifactId>hessian</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
        </dependency>
武汉红喜's avatar
netty4  
武汉红喜 已提交
63 64 65 66 67 68

        <!-- netty4 -->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
        </dependency>
武汉红喜's avatar
武汉红喜 已提交
69

武汉红喜's avatar
武汉红喜 已提交
70 71 72 73 74 75 76 77
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-dubbo-adapter</artifactId>
        </dependency>
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-transport-simple-http</artifactId>
        </dependency>
S
shenhongxi 已提交
78 79
    </dependencies>

武汉红喜's avatar
武汉红喜 已提交
80 81 82 83 84 85 86 87
    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
武汉红喜's avatar
武汉红喜 已提交
88
            <!-- 生成可执行jar和lib文件夹 -->
武汉红喜's avatar
武汉红喜 已提交
89 90 91 92 93 94 95
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <addMavenDescriptor>true</addMavenDescriptor>
                        <manifest>
武汉红喜's avatar
武汉红喜 已提交
96 97
                            <addClasspath>true</addClasspath>
                            <classpathPrefix>lib/</classpathPrefix>
武汉红喜's avatar
武汉红喜 已提交
98 99 100 101 102
                            <mainClass>org.hongxi.whatsmars.dubbo.demo.consumer.DemoConsumer</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
武汉红喜's avatar
武汉红喜 已提交
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
            <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
武汉红喜 已提交
119 120 121
        </plugins>
    </build>

S
shenhongxi 已提交
122 123

</project>