You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2022/10/23 10:22:04 UTC
[hadoop-thirdparty] branch trunk updated: [HADOOP-18342] add shaded avro jar hadoop-shaded-avro_1_11 (#21)
This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop-thirdparty.git
The following commit(s) were added to refs/heads/trunk by this push:
new 476dbc0 [HADOOP-18342] add shaded avro jar hadoop-shaded-avro_1_11 (#21)
476dbc0 is described below
commit 476dbc0e3bfce03b344cc806e1f6e98911686f9f
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sun Oct 23 11:21:58 2022 +0100
[HADOOP-18342] add shaded avro jar hadoop-shaded-avro_1_11 (#21)
There is now a shaded avro jar hadoop-shaded-avro_1_11
---
hadoop-shaded-avro_1_11/pom.xml | 100 ++++++++++++++++++++++++++++++++++++++++
pom.xml | 2 +
2 files changed, 102 insertions(+)
diff --git a/hadoop-shaded-avro_1_11/pom.xml b/hadoop-shaded-avro_1_11/pom.xml
new file mode 100644
index 0000000..c9da462
--- /dev/null
+++ b/hadoop-shaded-avro_1_11/pom.xml
@@ -0,0 +1,100 @@
+<?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.2.0-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>hadoop-shaded-avro_1_11</artifactId>
+ <name>Apache Hadoop shaded Avro 1.11</name>
+ <packaging>jar</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.avro</groupId>
+ <artifactId>avro</artifactId>
+ <version>${avro.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>
+ <excludes>
+ <exclude>META-INF/maven/org.apache.avro/*</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <configuration>
+ <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ </configuration>
+ <executions>
+ <execution>
+ <id>shade-avro</id>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <artifactSet>
+ <includes>
+ <include>org.apache.avro:avro</include>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>org/apache/avro</pattern>
+ <shadedPattern>${shaded.prefix}/avro</shadedPattern>
+ </relocation>
+ </relocations>
+ <transformers>
+ <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>
+ </build>
+</project>
diff --git a/pom.xml b/pom.xml
index bdb2e7d..f3dc946 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,6 +96,7 @@
<protobuf.shade.prefix>${shaded.prefix}.protobuf</protobuf.shade.prefix>
<protobuf_3_7.version>3.7.1</protobuf_3_7.version>
<guava.version>30.1.1-jre</guava.version>
+ <avro.version>1.11.1</avro.version>
<!-- maven plugin versions -->
<maven-deploy-plugin.version>2.8.1</maven-deploy-plugin.version>
@@ -124,6 +125,7 @@
<modules>
<module>hadoop-shaded-protobuf_3_7</module>
<module>hadoop-shaded-guava</module>
+ <module>hadoop-shaded-avro_1_11</module>
</modules>
<build>
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org