pom.xml 7.8 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
wu-sheng's avatar
wu-sheng 已提交
3 4 5 6 7 8
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You 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
9 10 11 12 13 14 15 16 17 18 19
  ~
  ~     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.
  ~
  -->

wu-sheng's avatar
wu-sheng 已提交
20
<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">
21
    <modelVersion>4.0.0</modelVersion>
Z
zhangxin10 已提交
22

23
    <parent>
24
        <groupId>org.apache.skywalking</groupId>
P
pengys5 已提交
25
        <artifactId>apm-sniffer</artifactId>
wu-sheng's avatar
wu-sheng 已提交
26
        <version>6.2.0-SNAPSHOT</version>
27 28
    </parent>

P
pengys5 已提交
29
    <artifactId>apm-sdk-plugin</artifactId>
30 31
    <modules>
        <module>dubbo-plugin</module>
32
        <module>jdbc-commons</module>
33 34
        <module>httpClient-4.x-plugin</module>
        <module>jedis-2.x-plugin</module>
于玉桔 已提交
35
        <module>redisson-3.x-plugin</module>
36
        <module>tomcat-7.x-8.x-plugin</module>
A
ascrutae 已提交
37
        <module>motan-plugin</module>
B
baiyang 已提交
38
        <module>mongodb-3.x-plugin</module>
39 40
        <module>feign-default-http-9.x-plugin</module>
        <module>okhttp-3.x-plugin</module>
A
ascrutae 已提交
41
        <module>spring-plugins</module>
A
ascrutae 已提交
42
        <module>struts2-2.x-plugin</module>
43
        <module>nutz-plugins</module>
A
ascrutae 已提交
44
        <module>jetty-plugin</module>
IluckySi's avatar
IluckySi 已提交
45
        <module>spymemcached-2.x-plugin</module>
G
gaohongtao 已提交
46
        <module>sharding-jdbc-1.5.x-plugin</module>
IluckySi's avatar
IluckySi 已提交
47
        <module>xmemcached-2.x-plugin</module>
A
ascrutae 已提交
48
        <module>grpc-1.x-plugin</module>
A
ascrutae 已提交
49
        <module>mysql-5.x-plugin</module>
50 51 52
        <module>mysql-6.x-plugin</module>
        <module>mysql-8.x-plugin</module>
        <module>mysql-common</module>
53 54
        <module>h2-1.x-plugin</module>
        <module>postgresql-8.x-plugin</module>
C
carlvine 已提交
55
        <module>rocketMQ-3.x-plugin</module>
A
ascrutae 已提交
56
        <module>rocketMQ-4.x-plugin</module>
G
gaohongtao 已提交
57
        <module>elastic-job-2.x-plugin</module>
L
lytscu 已提交
58
        <module>mongodb-2.x-plugin</module>
59
        <module>httpasyncclient-4.x-plugin</module>
A
ascrutae 已提交
60
        <module>kafka-v1-plugin</module>
L
lytscu 已提交
61
        <module>servicecomb-plugin</module>
A
ascrutae 已提交
62
        <module>hystrix-1.x-plugin</module>
63
        <module>sofarpc-plugin</module>
64
        <module>activemq-5.x-plugin</module>
65
        <module>elasticsearch-5.x-plugin</module>
C
chenpengfei 已提交
66
        <module>undertow-plugins</module>
X
XiaoFu 已提交
67
        <module>rabbitmq-5.x-plugin</module>
68
        <module>dubbo-conflict-patch</module>
X
XiaoFu 已提交
69
        <module>canal-1.x-plugin</module>
K
kezhenxu94 已提交
70 71
        <module>dubbo-2.7.x-plugin</module>
        <module>dubbo-2.7.x-conflict-patch</module>
72
        <module>vertx-plugins</module>
A
ascrutae 已提交
73
    </modules>
74
    <packaging>pom</packaging>
Z
zhangxin10 已提交
75

P
pengys5 已提交
76
    <name>apm-sdk-plugin</name>
77
    <url>http://maven.apache.org</url>
Z
zhangxin10 已提交
78

79 80
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
wu-sheng's avatar
wu-sheng 已提交
81
        <sdk.plugin.related.dir />
82 83
        <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 已提交
84

wu-sheng's avatar
wu-sheng 已提交
85
        <agent.package.dest.dir>${project.build.directory}${sdk.plugin.related.dir}/../../../../skywalking-agent</agent.package.dest.dir>
A
ascrutae 已提交
86
        <plugin.dest.dir>${agent.package.dest.dir}/plugins</plugin.dest.dir>
87 88 89

        <ant-contrib.version>1.0b3</ant-contrib.version>
        <ant-nodeps.version>1.8.1</ant-nodeps.version>
90
    </properties>
Z
zhangxin10 已提交
91

92 93
    <dependencies>
        <dependency>
94
            <groupId>org.apache.skywalking</groupId>
95
            <artifactId>apm-agent-core</artifactId>
96
            <version>${project.version}</version>
97 98 99
            <scope>provided</scope>
        </dependency>
        <dependency>
100
            <groupId>org.apache.skywalking</groupId>
101 102 103
            <artifactId>apm-util</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
104
        </dependency>
A
ascrutae 已提交
105
        <dependency>
106
            <groupId>org.apache.skywalking</groupId>
A
ascrutae 已提交
107 108 109 110
            <artifactId>apm-test-tools</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
111
    </dependencies>
wu-sheng's avatar
wu-sheng 已提交
112

113 114
    <build>
        <plugins>
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
            <plugin>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <shadedArtifactAttached>false</shadedArtifactAttached>
                            <createDependencyReducedPom>true</createDependencyReducedPom>
                            <createSourcesJar>true</createSourcesJar>
                            <shadeSourcesContent>true</shadeSourcesContent>
                            <relocations>
                                <relocation>
                                    <pattern>${shade.net.bytebuddy.source}</pattern>
                                    <shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
                                </relocation>
                            </relocations>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
138
            <plugin>
139 140 141 142 143 144 145 146 147
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
wu-sheng's avatar
wu-sheng 已提交
148
                                <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.runtime.classpath" />
149
                                <if>
wu-sheng's avatar
wu-sheng 已提交
150
                                    <equals arg1="${project.packaging}" arg2="jar" />
151
                                    <then>
wu-sheng's avatar
wu-sheng 已提交
152 153
                                        <mkdir dir="${plugin.dest.dir}" />
                                        <copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" tofile="${plugin.dest.dir}/${project.artifactId}-${project.version}.jar" overwrite="true" />
154 155 156 157 158 159 160 161 162 163 164
                                    </then>
                                </if>

                            </tasks>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>ant-contrib</groupId>
                        <artifactId>ant-contrib</artifactId>
165
                        <version>${ant-contrib.version}</version>
166 167 168 169 170 171 172 173 174 175
                        <exclusions>
                            <exclusion>
                                <groupId>ant</groupId>
                                <artifactId>ant</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant-nodeps</artifactId>
176
                        <version>${ant-nodeps.version}</version>
177 178 179
                    </dependency>
                </dependencies>
            </plugin>
180 181
        </plugins>
    </build>
182
</project>