pom.xml 11.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<!--
  ~ Copyright 2017, OpenSkywalking Organization All rights reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  ~ Project repository: https://github.com/OpenSkywalking/skywalking
  -->

A
ascrutae 已提交
19 20 21 22
<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 已提交
23
    <parent>
P
pengys5 已提交
24 25
        <groupId>org.skywalking</groupId>
        <artifactId>apm-sniffer</artifactId>
wu-sheng's avatar
wu-sheng 已提交
26
        <version>3.2.3-2017</version>
A
ascrutae 已提交
27 28
    </parent>

P
pengys5 已提交
29
    <artifactId>apm-agent</artifactId>
A
ascrutae 已提交
30 31
    <packaging>jar</packaging>

P
pengys5 已提交
32
    <name>apm-agent</name>
A
ascrutae 已提交
33 34 35 36
    <url>http://maven.apache.org</url>

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

P
pengys5 已提交
39
        <shade.package>org.skywalking.apm.dependencies</shade.package>
40 41
        <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 已提交
42 43 44
    </properties>

    <dependencies>
45
        <!-- plugin -->
A
ascrutae 已提交
46
        <dependency>
P
pengys5 已提交
47 48
            <groupId>org.skywalking</groupId>
            <artifactId>apm-jedis-2.x-plugin</artifactId>
Z
zhangxin 已提交
49
            <version>${project.version}</version>
A
ascrutae 已提交
50
        </dependency>
A
ascrutae 已提交
51
        <dependency>
P
pengys5 已提交
52 53
            <groupId>org.skywalking</groupId>
            <artifactId>apm-jdbc-plugin</artifactId>
Z
zhangxin 已提交
54
            <version>${project.version}</version>
A
ascrutae 已提交
55 56
        </dependency>
        <dependency>
P
pengys5 已提交
57 58
            <groupId>org.skywalking</groupId>
            <artifactId>apm-httpClient-4.x-plugin</artifactId>
Z
zhangxin 已提交
59
            <version>${project.version}</version>
A
ascrutae 已提交
60 61
        </dependency>
        <dependency>
P
pengys5 已提交
62 63
            <groupId>org.skywalking</groupId>
            <artifactId>apm-dubbo-plugin</artifactId>
Z
zhangxin 已提交
64
            <version>${project.version}</version>
A
ascrutae 已提交
65
        </dependency>
A
ascrutae 已提交
66
        <dependency>
P
pengys5 已提交
67
            <groupId>org.skywalking</groupId>
A
ascrutae 已提交
68
            <artifactId>tomcat-7.x-8.x-plugin</artifactId>
Z
zhangxin 已提交
69
            <version>${project.version}</version>
A
ascrutae 已提交
70 71
        </dependency>
        <dependency>
P
pengys5 已提交
72
            <groupId>org.skywalking</groupId>
A
ascrutae 已提交
73
            <artifactId>motan-plugin</artifactId>
Z
zhangxin 已提交
74
            <version>${project.version}</version>
A
ascrutae 已提交
75
        </dependency>
B
baiyang 已提交
76
        <dependency>
P
pengys5 已提交
77 78
            <groupId>org.skywalking</groupId>
            <artifactId>apm-mongodb-3.x-plugin</artifactId>
B
baiyang 已提交
79 80
            <version>${project.version}</version>
        </dependency>
柏杨 Bai Yang 已提交
81 82 83 84 85 86 87 88 89 90
        <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>
91 92 93 94 95
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-okhttp-3.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
96 97 98 99 100
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-feign-default-http-9.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
A
ascrutae 已提交
101 102
        <dependency>
            <groupId>org.skywalking</groupId>
A
ascrutae 已提交
103
            <artifactId>apm-resttemplate-4.3.x-plugin</artifactId>
A
ascrutae 已提交
104 105 106 107
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.skywalking</groupId>
A
ascrutae 已提交
108
            <artifactId>apm-spring-concurrent-util-4.x-plugin</artifactId>
A
ascrutae 已提交
109 110
            <version>${project.version}</version>
        </dependency>
A
ascrutae 已提交
111 112 113 114 115
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-springmvc-annotation-4.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
A
ascrutae 已提交
116 117 118 119 120
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-spring-cloud-feign-1.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
A
ascrutae 已提交
121 122 123 124 125
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-struts2-2.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
126 127 128 129 130 131 132 133 134 135
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-nutz-mvc-annotation-1.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-nutz-http-1.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
A
ascrutae 已提交
136 137 138 139 140 141 142 143 144 145
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-jetty-client-9.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-jetty-server-9.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
IluckySi's avatar
IluckySi 已提交
146 147 148 149
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-spymemcached-2.x-plugin</artifactId>
            <version>${project.version}</version>
150
        </dependency>
G
gaohongtao 已提交
151 152 153 154 155
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-sharding-jdbc-1.5.x-plugin</artifactId>
            <version>${project.version}</version>
        </dependency>
156

157 158
        <!-- activation -->
        <dependency>
P
pengys5 已提交
159 160
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-log4j-1.x-activation</artifactId>
Z
zhangxin 已提交
161
            <version>${project.version}</version>
162
        </dependency>
163
        <dependency>
P
pengys5 已提交
164 165
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-log4j-2.x-activation</artifactId>
Z
zhangxin 已提交
166
            <version>${project.version}</version>
167
        </dependency>
A
ascrutae 已提交
168 169

        <dependency>
P
pengys5 已提交
170 171
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-logback-1.x-activation</artifactId>
Z
zhangxin 已提交
172
            <version>${project.version}</version>
A
ascrutae 已提交
173
        </dependency>
A
ascrutae 已提交
174

Z
zhangxin 已提交
175
        <dependency>
P
pengys5 已提交
176 177
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-opentracing-activation</artifactId>
Z
zhangxin 已提交
178
            <version>${project.version}</version>
A
ascrutae 已提交
179
        </dependency>
A
ascrutae 已提交
180

A
ascrutae 已提交
181 182 183 184 185 186
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-toolkit-trace-activation</artifactId>
            <version>${project.version}</version>
        </dependency>

A
ascrutae 已提交
187 188
    </dependencies>
    <build>
wu-sheng's avatar
wu-sheng 已提交
189
        <finalName>skywalking-agent</finalName>
A
ascrutae 已提交
190 191 192 193
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
194
                <version>2.4.1</version>
A
ascrutae 已提交
195 196 197 198 199 200 201
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
202 203 204 205
                            <shadedArtifactAttached>false</shadedArtifactAttached>
                            <createDependencyReducedPom>true</createDependencyReducedPom>
                            <createSourcesJar>true</createSourcesJar>
                            <shadeSourcesContent>true</shadeSourcesContent>
A
ascrutae 已提交
206 207
                            <transformers>
                                <transformer
A
ascrutae 已提交
208
                                    implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
A
ascrutae 已提交
209 210
                                    <resource>skywalking-plugin.def</resource>
                                </transformer>
211
                                <transformer
A
ascrutae 已提交
212
                                    implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
A
ascrutae 已提交
213
                                    <manifestEntries>
214
                                        <Premain-Class>${premain.class}</Premain-Class>
A
ascrutae 已提交
215 216 217
                                    </manifestEntries>
                                </transformer>
                            </transformers>
218 219 220 221 222 223 224
                            <artifactSet>
                                <excludes>
                                    <exclude>com.lmax:*</exclude>
                                    <exclude>org.apache.httpcomponents:*</exclude>
                                    <exclude>commons-logging:*</exclude>
                                    <exclude>commons-codec:*</exclude>
                                    <exclude>*:gson</exclude>
A
ascrutae 已提交
225 226
                                    <exclude>io.grpc:*</exclude>
                                    <exclude>io.netty:*</exclude>
227
                                    <exclude>com.google.*:*</exclude>
A
ascrutae 已提交
228
                                    <exclude>com.google.guava:guava</exclude>
229 230
                                </excludes>
                            </artifactSet>
231
                            <relocations>
A
ascrutae 已提交
232 233 234 235
                                <relocation>
                                    <pattern>${shade.net.bytebuddy.source}</pattern>
                                    <shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
                                </relocation>
236
                            </relocations>
A
ascrutae 已提交
237 238 239 240
                        </configuration>
                    </execution>
                </executions>
            </plugin>
A
ascrutae 已提交
241 242 243 244 245 246 247 248 249 250 251
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
wu-sheng's avatar
wu-sheng 已提交
252
                                <mkdir dir="${project.basedir}/../../packages/skywalking-agent"/>
A
ascrutae 已提交
253
                                <copy file="${project.build.directory}/skywalking-agent.jar"
wu-sheng's avatar
wu-sheng 已提交
254
                                      tofile="${project.basedir}/../../packages/skywalking-agent/skywalking-agent.jar" overwrite="true"/>
A
ascrutae 已提交
255 256 257 258 259
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
A
ascrutae 已提交
260 261
        </plugins>
    </build>
262 263 264 265 266

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