244 lines
10 KiB
XML
244 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-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
|
|
~
|
|
~ 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 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>
|
|
|
|
<parent>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<artifactId>apm-sniffer</artifactId>
|
|
<version>5.0.0-alpha</version>
|
|
</parent>
|
|
|
|
<artifactId>apm-sdk-plugin</artifactId>
|
|
<modules>
|
|
<module>dubbo-plugin</module>
|
|
<module>jdbc-commons</module>
|
|
<module>httpClient-4.x-plugin</module>
|
|
<module>jedis-2.x-plugin</module>
|
|
<module>tomcat-7.x-8.x-plugin</module>
|
|
<module>motan-plugin</module>
|
|
<module>mongodb-3.x-plugin</module>
|
|
<module>feign-default-http-9.x-plugin</module>
|
|
<module>okhttp-3.x-plugin</module>
|
|
<module>spring-plugins</module>
|
|
<module>struts2-2.x-plugin</module>
|
|
<module>nutz-plugins</module>
|
|
<module>jetty-plugin</module>
|
|
<module>spymemcached-2.x-plugin</module>
|
|
<module>sharding-jdbc-1.5.x-plugin</module>
|
|
<module>xmemcached-2.x-plugin</module>
|
|
<module>grpc-1.x-plugin</module>
|
|
<module>mysql-5.x-plugin</module>
|
|
<module>h2-1.x-plugin</module>
|
|
<module>postgresql-8.x-plugin</module>
|
|
<module>rocketMQ-4.x-plugin</module>
|
|
<module>elastic-job-2.x-plugin</module>
|
|
<module>mongodb-2.x-plugin</module>
|
|
<module>httpasyncclient-4.x-plugin</module>
|
|
<module>kafka-0.11.x-plugin</module>
|
|
</modules>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>apm-sdk-plugin</name>
|
|
<url>http://maven.apache.org</url>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<sdk.plugin.related.dir></sdk.plugin.related.dir>
|
|
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source>
|
|
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<artifactId>apm-agent-core</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<artifactId>apm-util</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.skywalking</groupId>
|
|
<artifactId>apm-test-tools</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>2.4.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<shadedArtifactAttached>false</shadedArtifactAttached>
|
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
|
<createSourcesJar>true</createSourcesJar>
|
|
<shadeSourcesContent>true</shadeSourcesContent>
|
|
<artifactSet>
|
|
<excludes>
|
|
<exclude>com.lmax:*</exclude>
|
|
<exclude>org.apache.httpcomponents:*</exclude>
|
|
<exclude>commons-logging:*</exclude>
|
|
<exclude>commons-codec:*</exclude>
|
|
<exclude>*:gson</exclude>
|
|
<exclude>io.grpc:*</exclude>
|
|
<exclude>io.netty:*</exclude>
|
|
<exclude>com.google.*:*</exclude>
|
|
<exclude>com.google.guava:guava</exclude>
|
|
</excludes>
|
|
</artifactSet>
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>${shade.net.bytebuddy.source}</pattern>
|
|
<shadedPattern>${shade.net.bytebuddy.target}</shadedPattern>
|
|
</relocation>
|
|
</relocations>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</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>
|
|
<plugin>
|
|
<!-- 源码插件 -->
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<!-- 发布时自动将源码同时发布的配置 -->
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<phase>none</phase>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
|
|
classpathref="maven.runtime.classpath"/>
|
|
<if>
|
|
<equals arg1="${project.packaging}" arg2="jar"/>
|
|
<then>
|
|
<mkdir
|
|
dir="${project.build.directory}${sdk.plugin.related.dir}/../../../../packages/skywalking-agent/plugins"/>
|
|
<copy
|
|
file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
|
|
tofile="${project.build.directory}${sdk.plugin.related.dir}/../../../../packages/skywalking-agent/plugins/${project.artifactId}-${project.version}.jar"
|
|
overwrite="true"/>
|
|
</then>
|
|
</if>
|
|
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ant-contrib</groupId>
|
|
<artifactId>ant-contrib</artifactId>
|
|
<version>1.0b3</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant-nodeps</artifactId>
|
|
<version>1.8.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<!-- ojdbc is not Apache license compatible, so it must be manually downloaded first -->
|
|
<id>include-ojdbc</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${basedir}/../../ci-dependencies/ojdbc14-10.2.0.4.0.jar</exists>
|
|
</file>
|
|
</activation>
|
|
<modules>
|
|
<module>oracle-10.x-plugin</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<!-- resin-3 is not Apache license compatible, so it must be manually downloaded first -->
|
|
<id>include-resin-3</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${basedir}/../../ci-dependencies/resin-3.0.9.jar</exists>
|
|
</file>
|
|
</activation>
|
|
<modules>
|
|
<module>resin-3.x-plugin</module>
|
|
</modules>
|
|
</profile>
|
|
<profile>
|
|
<!-- resin-4 is not Apache license compatible, so it must be manually downloaded first -->
|
|
<id>include-resin-4</id>
|
|
<activation>
|
|
<file>
|
|
<exists>${basedir}/../../ci-dependencies/resin-4.0.41.jar</exists>
|
|
</file>
|
|
</activation>
|
|
<modules>
|
|
<module>resin-4.x-plugin</module>
|
|
</modules>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|