| <?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"> |
| <parent> |
| <artifactId>hadoop-thirdparty</artifactId> |
| <groupId>org.apache.hadoop.thirdparty</groupId> |
| <version>1.1.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>hadoop-shaded-jaeger</artifactId> |
| |
| <name>Apache Hadoop shaded JaegerTracer</name> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <jaegertracing.version>0.34.2</jaegertracing.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>io.jaegertracing</groupId> |
| <artifactId>jaeger-client</artifactId> |
| <version>${jaegertracing.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>${project.basedir}/..</directory> |
| <targetPath>META-INF</targetPath> |
| <includes> |
| <include>licenses-binary/*</include> |
| <include>NOTICE.txt</include> |
| <include>NOTICE-binary</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>${project.basedir}/src/main/resources</directory> |
| </resource> |
| </resources> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <!--Make it so assembly:single does nothing in here--> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <skipAssembly>true</skipAssembly> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>aggregate-into-a-jar-with-relocated-third-parties</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>false</createSourcesJar> |
| <shadedArtifactAttached>false</shadedArtifactAttached> |
| <shadeTestJar>false</shadeTestJar> |
| |
| <artifactSet> |
| <excludes> |
| <exclude>org.apache.httpcomponents:httpclient</exclude> |
| <exclude>commons-logging:commons-logging</exclude> |
| <exclude>commons-codec:commons-codec</exclude> |
| <exclude>org.apache.httpcomponents:httpcore</exclude> |
| <exclude>javax.annotation:javax.annotation-api</exclude> |
| <exclude>org.slf4j:slf4j-api</exclude> |
| <exclude>io.opentracing:*</exclude> |
| </excludes> |
| </artifactSet> |
| |
| <relocations> |
| <!-- shade gson, which is transitively included via jaeger-core --> |
| <relocation> |
| <pattern>com.google.gson</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.com.google.gson</shadedPattern> |
| </relocation> |
| |
| <!-- shade jaeger-thrift and its dependencies --> |
| <relocation> |
| <pattern>io.jaegertracing.thriftjava</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.thriftjava</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.jaegertracing.crossdock</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.crossdock</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.jaegertracing.thrift</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.thrift</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.jaegertracing.agent</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.agent</shadedPattern> |
| </relocation> |
| |
| <relocation> |
| <pattern>org.apache.thrift</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.apache.thrift</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.twitter.zipkin</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.com.twitter.zipkin</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>okhttp3</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.okhttp3</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>kotlin</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.kotlin</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.intellij</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.org.intellij</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.jetbrains</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.org.jetbrains</shadedPattern> |
| </relocation> |
| <!-- top level okio --> |
| <relocation> |
| <pattern>okio</pattern> |
| <shadedPattern>${shaded.prefix}.io.jaegertracing.okio</shadedPattern> |
| </relocation> |
| |
| </relocations> |
| <transformers> |
| <!-- Need to filter out some extraneous license files. |
| Don't use the ApacheLicenseRT because it just removes all |
| META-INF/LICENSE(.txt)? files, including ours. --> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| <resources> |
| <resource>LICENSE.txt</resource> |
| <resource>ASL2.0</resource> |
| <!-- also this unneeded doc --> |
| <resource>overview.html</resource> |
| <resource>NOTICE</resource> |
| <resource>LICENSE</resource> |
| </resources> |
| </transformer> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/LICENSE.txt</resource> |
| <file>${basedir}/../LICENSE-binary</file> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <!--Make it so assembly:single does nothing in here--> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <skipAssembly>true</skipAssembly> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |