pom.xml 4.8 KB
Newer Older
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
wu-sheng's avatar
wu-sheng 已提交
2 3
         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>
4

wu-sheng's avatar
wu-sheng 已提交
5
    <parent>
P
pengys5 已提交
6 7
        <groupId>org.skywalking</groupId>
        <artifactId>apm-sniffer</artifactId>
8
        <version>3.1-2017</version>
wu-sheng's avatar
wu-sheng 已提交
9
    </parent>
wu-sheng's avatar
wu-sheng 已提交
10

11
    <artifactId>apm-agent-core</artifactId>
wu-sheng's avatar
wu-sheng 已提交
12
    <packaging>jar</packaging>
13

14
    <name>apm-agent-core</name>
wu-sheng's avatar
wu-sheng 已提交
15
    <url>http://maven.apache.org</url>
16

wu-sheng's avatar
wu-sheng 已提交
17 18
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19
        <jetty.version>9.4.2.v20170220</jetty.version>
20

P
pengys5 已提交
21
        <shade.package>org.skywalking.apm.dependencies</shade.package>
22 23 24 25 26 27 28
        <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.com.google.source>com.google</shade.com.google.source>
        <shade.com.google.target>${shade.package}.${shade.com.google.source}</shade.com.google.target>
        <shade.org.apache.source>org.apache</shade.org.apache.source>
        <shade.org.apache.target>${shade.package}.${shade.org.apache.source}</shade.org.apache.target>
wu-sheng's avatar
wu-sheng 已提交
29
    </properties>
30

wu-sheng's avatar
wu-sheng 已提交
31 32
    <dependencies>
        <dependency>
P
pengys5 已提交
33 34
            <groupId>org.skywalking</groupId>
            <artifactId>apm-logging-api</artifactId>
35 36 37 38 39 40 41
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>net.bytebuddy</groupId>
            <artifactId>byte-buddy</artifactId>
            <version>1.5.7</version>
        </dependency>
A
ascrutae 已提交
42 43 44 45 46 47
        <dependency>
            <groupId>net.bytebuddy</groupId>
            <artifactId>byte-buddy-agent</artifactId>
            <version>1.5.7</version>
            <scope>test</scope>
        </dependency>
wu-sheng's avatar
wu-sheng 已提交
48 49 50 51 52
        <dependency>
            <groupId>com.lmax</groupId>
            <artifactId>disruptor</artifactId>
            <version>3.3.6</version>
        </dependency>
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.3</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
            <version>${jetty.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
            <version>${jetty.version}</version>
            <scope>test</scope>
        </dependency>
wu-sheng's avatar
wu-sheng 已提交
70 71 72 73 74 75 76 77 78 79 80
    </dependencies>
    <build>
        <plugins>
            <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>
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
            <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>
                            <artifactSet>
                                <excludes>
                                    <exclude>net.bytebuddy:byte-buddy:jar:</exclude>
                                </excludes>
                            </artifactSet>
                            <relocations>
                                <relocation>
                                    <pattern>${shade.com.lmax.disruptor.source}</pattern>
                                    <shadedPattern>${shade.com.lmax.disruptor.target}</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>${shade.com.google.source}</pattern>
                                    <shadedPattern>${shade.com.google.target}</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>${shade.org.apache.source}</pattern>
                                    <shadedPattern>${shade.org.apache.target}</shadedPattern>
                                </relocation>
                            </relocations>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
wu-sheng's avatar
wu-sheng 已提交
115 116
        </plugins>
    </build>
117
</project>