pom.xml 5.3 KB
Newer Older
P
pengys5 已提交
1 2 3 4 5 6 7
<?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>apm-collector</artifactId>
        <groupId>org.skywalking</groupId>
P
peng-yongsheng 已提交
8
        <version>3.2.2-2017</version>
P
pengys5 已提交
9 10 11
    </parent>
    <modelVersion>4.0.0</modelVersion>

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

P
pengys5 已提交
15 16 17
    <properties>
        <main.class>org.skywalking.apm.collector.boot.CollectorBootStartUp</main.class>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
A
ascrutae 已提交
18
        <docker.image.name>skywalking/skywalking-collector</docker.image.name>
P
pengys5 已提交
19 20 21
        <docker.image.version>${version}</docker.image.version>
    </properties>

P
pengys5 已提交
22 23 24
    <dependencies>
        <dependency>
            <groupId>org.skywalking</groupId>
P
pengys5 已提交
25
            <artifactId>apm-collector-cluster</artifactId>
P
pengys5 已提交
26 27 28 29
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.skywalking</groupId>
P
pengys5 已提交
30
            <artifactId>apm-collector-queue</artifactId>
P
pengys5 已提交
31 32 33
            <version>${project.version}</version>
        </dependency>
        <dependency>
34 35 36 37 38
            <groupId>org.skywalking</groupId>
            <artifactId>apm-collector-storage</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
P
pengys5 已提交
39
            <groupId>org.skywalking</groupId>
P
pengys5 已提交
40 41 42
            <artifactId>apm-collector-ui</artifactId>
            <version>${project.version}</version>
        </dependency>
43 44 45 46 47
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-collector-agentserver</artifactId>
            <version>${project.version}</version>
        </dependency>
P
pengys5 已提交
48 49 50
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-collector-agentstream</artifactId>
P
pengys5 已提交
51 52
            <version>${project.version}</version>
        </dependency>
53 54 55 56 57
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-collector-agentregister</artifactId>
            <version>${project.version}</version>
        </dependency>
P
pengys5 已提交
58 59 60 61 62
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-collector-agentjvm</artifactId>
            <version>${project.version}</version>
        </dependency>
P
pengys5 已提交
63
    </dependencies>
P
pengys5 已提交
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 93 94 95 96 97 98

    <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>
                        <exclude>*.yml</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>
A
ascrutae 已提交
99
                            <outputDirectory>${project.basedir}/../../packages</outputDirectory>
P
pengys5 已提交
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.spotify</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>${docker.plugin.version}</version>
                <configuration>
                    <skipDocker>false</skipDocker>
                    <imageName>${docker.image.name}</imageName>
                    <imageTags>
                        <imageTag>${docker.image.version}</imageTag>
                    </imageTags>
                    <dockerDirectory>${project.basedir}/docker</dockerDirectory>
                    <resources>
                        <resource>
                            <targetPath>/</targetPath>
A
ascrutae 已提交
118
                            <directory>${project.basedir}/../../packages</directory>
P
pengys5 已提交
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
                            <include>${build.finalName}.tar.gz</include>
                        </resource>
                    </resources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
A
ascrutae 已提交
134
</project>