pom.xml 4.4 KB
Newer Older
P
pengys5 已提交
1 2 3 4 5
<?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>
P
pengys5 已提交
6 7
        <artifactId>apm-collector</artifactId>
        <groupId>org.skywalking</groupId>
wu-sheng's avatar
wu-sheng 已提交
8
        <version>3.2-2017</version>
P
pengys5 已提交
9 10 11
    </parent>
    <modelVersion>4.0.0</modelVersion>

P
pengys5 已提交
12
    <artifactId>apm-collector-worker</artifactId>
P
pengys5 已提交
13
    <packaging>jar</packaging>
P
pengys5 已提交
14

15 16
    <properties>
        <jetty.version>9.4.2.v20170220</jetty.version>
P
pengys5 已提交
17
        <main.class>org.skywalking.apm.collector.worker.CollectorBootStartUp</main.class>
18 19
        <docker.image.name>skywalking/${artifactId}</docker.image.name>
        <docker.image.version>${version}</docker.image.version>
20 21
    </properties>

P
pengys5 已提交
22 23
    <dependencies>
        <dependency>
P
pengys5 已提交
24 25
            <groupId>org.skywalking</groupId>
            <artifactId>apm-collector-cluster</artifactId>
P
pengys5 已提交
26 27
            <version>${project.version}</version>
        </dependency>
28 29 30 31 32
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-network</artifactId>
            <version>${project.version}</version>
        </dependency>
33
        <dependency>
34 35 36
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>${jetty.version}</version>
37 38
        </dependency>
        <dependency>
39 40 41
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
            <version>${jetty.version}</version>
42
        </dependency>
P
pengys5 已提交
43 44 45
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>transport</artifactId>
46
            <version>5.4.3</version>
P
pengys5 已提交
47
        </dependency>
P
pengys5 已提交
48
        <dependency>
P
pengys5 已提交
49 50
            <groupId>org.skywalking</groupId>
            <artifactId>apm-sniffer-mock</artifactId>
P
pengys5 已提交
51 52 53
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
P
pengys5 已提交
54
    </dependencies>
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92

    <build>
        <finalName>skywalking-collector</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <excludes>
                        <exclude>*.xml</exclude>
                        <exclude>*.config</exclude>
                    </excludes>
                    <archive>
                        <manifest>
                            <mainClass>${main.class}</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/assembly.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
Z
zhangxin 已提交
93 94 95 96 97 98
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>false</skipDocker>
99
                    <imageName>${docker.image.name}</imageName>
Z
zhangxin 已提交
100
                    <imageTags>
101
                        <imageTag>${docker.image.version}</imageTag>
Z
zhangxin 已提交
102 103 104 105 106 107 108 109 110 111 112
                    </imageTags>
                    <dockerDirectory>${project.basedir}/docker</dockerDirectory>
                    <resources>
                        <resource>
                            <targetPath>/</targetPath>
                            <directory>${project.build.directory}</directory>
                            <include>${build.finalName}.tar.gz</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
113 114
        </plugins>
    </build>
115
</project>