pom.xml 8.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<!--
  ~ 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
  -->

19
<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 已提交
20 21
         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>
22

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

29
    <artifactId>apm-agent-core</artifactId>
wu-sheng's avatar
wu-sheng 已提交
30
    <packaging>jar</packaging>
31

32
    <name>apm-agent-core</name>
wu-sheng's avatar
wu-sheng 已提交
33
    <url>http://maven.apache.org</url>
34

wu-sheng's avatar
wu-sheng 已提交
35 36
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37
        <jetty.version>9.4.2.v20170220</jetty.version>
wu-sheng's avatar
wu-sheng 已提交
38
        <grpc.version>1.4.0</grpc.version>
39

P
pengys5 已提交
40
        <shade.package>org.skywalking.apm.dependencies</shade.package>
41 42 43 44 45 46 47
        <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>
A
ascrutae 已提交
48 49 50 51
        <shade.io.grpc.source>io.grpc</shade.io.grpc.source>
        <shade.io.grpc.target>${shade.package}.${shade.io.grpc.source}</shade.io.grpc.target>
        <shade.io.netty.source>io.netty</shade.io.netty.source>
        <shade.io.netty.target>${shade.package}.${shade.io.netty.source}</shade.io.netty.target>
wu-sheng's avatar
wu-sheng 已提交
52
    </properties>
53

wu-sheng's avatar
wu-sheng 已提交
54 55
    <dependencies>
        <dependency>
P
pengys5 已提交
56 57
            <groupId>org.skywalking</groupId>
            <artifactId>apm-logging-api</artifactId>
58 59
            <version>${project.version}</version>
        </dependency>
wu-sheng's avatar
wu-sheng 已提交
60 61 62 63 64
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-network</artifactId>
            <version>${project.version}</version>
        </dependency>
65 66 67
        <dependency>
            <groupId>net.bytebuddy</groupId>
            <artifactId>byte-buddy</artifactId>
wu-sheng's avatar
wu-sheng 已提交
68
            <version>1.7.1</version>
69
        </dependency>
A
ascrutae 已提交
70 71 72 73 74 75
        <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 已提交
76 77 78 79 80
        <dependency>
            <groupId>com.lmax</groupId>
            <artifactId>disruptor</artifactId>
            <version>3.3.6</version>
        </dependency>
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
        <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>
A
ascrutae 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
        <dependency>
            <groupId>com.github.tomakehurst</groupId>
            <artifactId>wiremock</artifactId>
            <version>2.6.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.grpc</groupId>
            <artifactId>grpc-testing</artifactId>
            <version>1.4.0</version>
            <exclusions>
                <exclusion>
                    <artifactId>mockito-core</artifactId>
                    <groupId>org.mockito</groupId>
                </exclusion>
            </exclusions>
            <scope>test</scope>
        </dependency>
A
ascrutae 已提交
116 117 118 119 120
        <dependency>
            <groupId>org.skywalking</groupId>
            <artifactId>apm-datacarrier</artifactId>
            <version>${project.version}</version>
        </dependency>
wu-sheng's avatar
wu-sheng 已提交
121 122
    </dependencies>
    <build>
wu-sheng's avatar
wu-sheng 已提交
123 124 125 126 127 128 129
        <extensions>
            <extension>
                <groupId>kr.motd.maven</groupId>
                <artifactId>os-maven-plugin</artifactId>
                <version>1.4.1.Final</version>
            </extension>
        </extensions>
wu-sheng's avatar
wu-sheng 已提交
130 131 132 133 134 135 136 137 138
        <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>
139 140 141
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
142
                <version>3.0.0</version>
143 144 145 146 147 148 149 150 151 152
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <artifactSet>
                                <excludes>
                                    <exclude>net.bytebuddy:byte-buddy:jar:</exclude>
A
ascrutae 已提交
153 154
                                    <exclude>com.google.errorprone:error_prone_annotations:jar:</exclude>
                                    <exclude>com.google.code.findbugs:jsr305:jar:</exclude>
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
                                </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>
A
ascrutae 已提交
170 171 172 173 174 175 176 177
                                <relocation>
                                    <pattern>${shade.io.grpc.source}</pattern>
                                    <shadedPattern>${shade.io.grpc.target}</shadedPattern>
                                </relocation>
                                <relocation>
                                    <pattern>${shade.io.netty.source}</pattern>
                                    <shadedPattern>${shade.io.netty.target}</shadedPattern>
                                </relocation>
178
                            </relocations>
179 180 181 182
                            <filters>
                                <filter>
                                    <artifact>com.google.protobuf:protobuf-java</artifact>
                                    <excludes>
A
ascrutae 已提交
183 184
                                        <exclude>google/protobuf/*.proto</exclude>
                                        <exclude>google/protobuf/compiler/*.proto</exclude>
185 186 187
                                    </excludes>
                                </filter>
                            </filters>
188 189 190 191
                            <transformers>
                                <transformer
                                    implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                            </transformers>
192 193 194 195
                        </configuration>
                    </execution>
                </executions>
            </plugin>
wu-sheng's avatar
wu-sheng 已提交
196 197
        </plugins>
    </build>
198
</project>