pom.xml 7.2 KB
Newer Older
A
ascrutae 已提交
1 2 3 4
<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">
    <modelVersion>4.0.0</modelVersion>

A
ascrutae 已提交
5
    <parent>
P
pengys5 已提交
6 7
        <groupId>org.skywalking</groupId>
        <artifactId>apm-sniffer</artifactId>
8
        <version>3.1-2017</version>
A
ascrutae 已提交
9 10
    </parent>

P
pengys5 已提交
11
    <artifactId>apm-agent</artifactId>
A
ascrutae 已提交
12 13
    <packaging>jar</packaging>

P
pengys5 已提交
14
    <name>apm-agent</name>
A
ascrutae 已提交
15 16 17 18
    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
P
pengys5 已提交
19
        <premain.class>org.skywalking.apm.agent.SkyWalkingAgent</premain.class>
20

P
pengys5 已提交
21
        <shade.package>org.skywalking.apm.dependencies</shade.package>
22 23
        <shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
        <shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>
A
ascrutae 已提交
24 25 26
    </properties>

    <dependencies>
27
        <!-- plugin -->
A
ascrutae 已提交
28
        <dependency>
P
pengys5 已提交
29 30
            <groupId>org.skywalking</groupId>
            <artifactId>apm-jedis-2.x-plugin</artifactId>
Z
zhangxin 已提交
31
            <version>${project.version}</version>
A
ascrutae 已提交
32
        </dependency>
A
ascrutae 已提交
33
        <dependency>
P
pengys5 已提交
34 35
            <groupId>org.skywalking</groupId>
            <artifactId>apm-jdbc-plugin</artifactId>
Z
zhangxin 已提交
36
            <version>${project.version}</version>
A
ascrutae 已提交
37 38
        </dependency>
        <dependency>
P
pengys5 已提交
39 40
            <groupId>org.skywalking</groupId>
            <artifactId>apm-httpClient-4.x-plugin</artifactId>
Z
zhangxin 已提交
41
            <version>${project.version}</version>
A
ascrutae 已提交
42 43
        </dependency>
        <dependency>
P
pengys5 已提交
44 45
            <groupId>org.skywalking</groupId>
            <artifactId>apm-dubbo-plugin</artifactId>
Z
zhangxin 已提交
46
            <version>${project.version}</version>
A
ascrutae 已提交
47
        </dependency>
A
ascrutae 已提交
48
        <dependency>
P
pengys5 已提交
49
            <groupId>org.skywalking</groupId>
A
ascrutae 已提交
50
            <artifactId>tomcat-7.x-8.x-plugin</artifactId>
Z
zhangxin 已提交
51
            <version>${project.version}</version>
A
ascrutae 已提交
52 53
        </dependency>
        <dependency>
P
pengys5 已提交
54
            <groupId>org.skywalking</groupId>
A
ascrutae 已提交
55
            <artifactId>motan-plugin</artifactId>
Z
zhangxin 已提交
56
            <version>${project.version}</version>
A
ascrutae 已提交
57
        </dependency>
B
baiyang 已提交
58
        <dependency>
P
pengys5 已提交
59 60
            <groupId>org.skywalking</groupId>
            <artifactId>apm-mongodb-3.x-plugin</artifactId>
B
baiyang 已提交
61 62
            <version>${project.version}</version>
        </dependency>
柏杨 Bai Yang 已提交
63 64 65 66 67 68 69 70 71 72
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-resin-3.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-resin-4.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
73 74 75 76 77
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-okhttp-3.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
78 79 80 81 82
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-feign-default-http-9.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
83 84 85

        <!-- activation -->
        <dependency>
P
pengys5 已提交
86 87
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-log4j-1.x-activation</artifactId>
Z
zhangxin 已提交
88
            <version>${project.version}</version>
89
        </dependency>
90
        <dependency>
P
pengys5 已提交
91 92
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-log4j-2.x-activation</artifactId>
Z
zhangxin 已提交
93
            <version>${project.version}</version>
94
        </dependency>
A
ascrutae 已提交
95 96

        <dependency>
P
pengys5 已提交
97 98
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-logback-1.x-activation</artifactId>
Z
zhangxin 已提交
99
            <version>${project.version}</version>
A
ascrutae 已提交
100
        </dependency>
A
ascrutae 已提交
101 102

        <dependency>
P
pengys5 已提交
103 104
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-trace-context-activation</artifactId>
Z
zhangxin 已提交
105 106 107 108
            <version>${project.version}</version>
        </dependency>

        <dependency>
P
pengys5 已提交
109 110
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-opentracing-activation</artifactId>
Z
zhangxin 已提交
111
            <version>${project.version}</version>
A
ascrutae 已提交
112
        </dependency>
A
ascrutae 已提交
113

A
ascrutae 已提交
114 115
    </dependencies>
    <build>
A
ascrutae 已提交
116
        <finalName>${artifactId}</finalName>
A
ascrutae 已提交
117 118 119 120
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
121
                <version>2.4.1</version>
A
ascrutae 已提交
122 123 124 125 126 127 128
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
129 130 131 132
                            <shadedArtifactAttached>false</shadedArtifactAttached>
                            <createDependencyReducedPom>true</createDependencyReducedPom>
                            <createSourcesJar>true</createSourcesJar>
                            <shadeSourcesContent>true</shadeSourcesContent>
A
ascrutae 已提交
133 134
                            <transformers>
                                <transformer
P
pengys5 已提交
135
                                        implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
A
ascrutae 已提交
136 137
                                    <resource>skywalking-plugin.def</resource>
                                </transformer>
138
                                <transformer
P
pengys5 已提交
139
                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
A
ascrutae 已提交
140
                                    <manifestEntries>
141
                                        <Premain-Class>${premain.class}</Premain-Class>
A
ascrutae 已提交
142 143 144
                                    </manifestEntries>
                                </transformer>
                            </transformers>
145 146 147 148 149 150 151 152 153
                            <artifactSet>
                                <excludes>
                                    <exclude>com.lmax:*</exclude>
                                    <exclude>org.apache.httpcomponents:*</exclude>
                                    <exclude>commons-logging:*</exclude>
                                    <exclude>commons-codec:*</exclude>
                                    <exclude>*:gson</exclude>
                                </excludes>
                            </artifactSet>
154
                            <relocations>
A
ascrutae 已提交
155 156 157 158
                                <relocation>
                                    <pattern>${shade.net.bytebuddy.source}</pattern>
                                    <shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
                                </relocation>
159
                            </relocations>
A
ascrutae 已提交
160 161 162 163 164 165
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
166 167 168 169 170

    <distributionManagement>
        <repository>
            <id>bintray-wu-sheng-sky-walking-repository</id>
            <name>wu-sheng-sky-walking-repository</name>
P
pengys5 已提交
171
            <url>https://api.bintray.com/maven/wu-sheng/skywalking/org.skywalking.apm-agent/;publish=1</url>
172 173
        </repository>
    </distributionManagement>
A
ascrutae 已提交
174
</project>