| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ~ 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 |
| --> |
| |
| <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.skywalking</groupId> |
| <artifactId>apm-sniffer</artifactId> |
| <version>3.2.4-2017</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>resin-3.x-plugin</module> |
| <module>resin-4.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>oracle-10.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.skywalking</groupId> |
| <artifactId>apm-agent-core</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.skywalking</groupId> |
| <artifactId>apm-util</artifactId> |
| <version>${project.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.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> |
| <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> |
| </project> |