<?xml version="1.0" encoding="UTF-8"?> | |
<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/maven-v4_0_0.xsd"> | |
<parent> | |
<artifactId>skywalking-sniffer</artifactId> | |
<groupId>com.a.eye</groupId> | |
<version>2.3-2017</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>skywalking-agent</artifactId> | |
<name>skywalking-agent</name> | |
<url>http://maven.apache.org</url> | |
<build> | |
<finalName>${artifactId}</finalName> | |
<plugins> | |
<plugin> | |
<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> | |
<transformers> | |
<transformer> | |
<resource>skywalking-plugin.def</resource> | |
</transformer> | |
<transformer> | |
<manifestEntries> | |
<Premain-Class>${premain.class}</Premain-Class> | |
</manifestEntries> | |
</transformer> | |
</transformers> | |
<relocations> | |
<relocation> | |
<pattern>${shade.net.bytebuddy.source}</pattern> | |
<shadedPattern>${shade.net.bytebuddy.target}</shadedPattern> | |
</relocation> | |
<relocation> | |
<pattern>${shade.com.lmax.disruptor.source}</pattern> | |
<shadedPattern>${shade.com.lmax.disruptor.target}</shadedPattern> | |
</relocation> | |
</relocations> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.12</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>hamcrest-core</artifactId> | |
<groupId>org.hamcrest</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-all</artifactId> | |
<version>1.10.19</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.powermock</groupId> | |
<artifactId>powermock-module-junit4</artifactId> | |
<version>1.6.4</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>powermock-module-junit4-common</artifactId> | |
<groupId>org.powermock</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.powermock</groupId> | |
<artifactId>powermock-api-mockito</artifactId> | |
<version>1.6.4</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>mockito-core</artifactId> | |
<groupId>org.mockito</groupId> | |
</exclusion> | |
<exclusion> | |
<artifactId>powermock-api-support</artifactId> | |
<groupId>org.powermock</groupId> | |
</exclusion> | |
<exclusion> | |
<artifactId>hamcrest-core</artifactId> | |
<groupId>org.hamcrest</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
</dependencies> | |
<distributionManagement> | |
<repository> | |
<id>bintray-wu-sheng-sky-walking-repository</id> | |
<name>wu-sheng-sky-walking-repository</name> | |
<url>https://api.bintray.com/maven/wu-sheng/skywalking/com.a.eye.skywalking-agent/;publish=1</url> | |
</repository> | |
</distributionManagement> | |
<properties> | |
<shade.net.bytebuddy.target>${shade.package}.${shade.net.bytebuddy.source}</shade.net.bytebuddy.target> | |
<shade.package>com.a.eye.skywalking.api.dependencies</shade.package> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<shade.com.lmax.disruptor.source>com.lmax.disruptor</shade.com.lmax.disruptor.source> | |
<shade.com.lmax.disruptor.target>${shade.package}.${shade.com.lmax.disruptor.source}</shade.com.lmax.disruptor.target> | |
<shade.net.bytebuddy.source>net.bytebuddy</shade.net.bytebuddy.source> | |
<premain.class>com.a.eye.skywalking.agent.SkyWalkingAgent</premain.class> | |
</properties> | |
</project> | |