You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by ji...@apache.org on 2024/06/11 03:46:44 UTC
(amoro-shade) 01/04: Add zookeeper3 shade module
This is an automated email from the ASF dual-hosted git repository.
jinsongzhou pushed a commit to branch add-more-shades
in repository https://gitbox.apache.org/repos/asf/amoro-shade.git
commit b01a35921b4849efe1b39f662704c1cab64a1927
Author: zhoujinsong <zh...@163.com>
AuthorDate: Fri Jun 7 17:16:58 2024 +0800
Add zookeeper3 shade module
---
.../src/main/resources/META-INF/NOTICE | 2 +-
amoro-shade-zookeeper-3/pom.xml | 186 +++++++++++++++++++++
.../src/main/resources/META-INF/NOTICE | 25 +++
pom.xml | 1 +
4 files changed, 213 insertions(+), 1 deletion(-)
diff --git a/amoro-shade-guava-32/src/main/resources/META-INF/NOTICE b/amoro-shade-guava-32/src/main/resources/META-INF/NOTICE
index 20822ac..a85cdb9 100644
--- a/amoro-shade-guava-32/src/main/resources/META-INF/NOTICE
+++ b/amoro-shade-guava-32/src/main/resources/META-INF/NOTICE
@@ -1,4 +1,4 @@
-amoro-shade-guava-32
+amoro-shade-zookeeper-3
Copyright 2024 The Apache Software Foundation
This product includes software developed at
diff --git a/amoro-shade-zookeeper-3/pom.xml b/amoro-shade-zookeeper-3/pom.xml
new file mode 100644
index 0000000..aa77116
--- /dev/null
+++ b/amoro-shade-zookeeper-3/pom.xml
@@ -0,0 +1,186 @@
+<?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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.amoro</groupId>
+ <artifactId>amoro-shade</artifactId>
+ <version>0.7-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>amoro-shade-zookeeper-3</artifactId>
+ <name>amoro-shade-zookeeper-3</name>
+ <version>${zookeeper.version}-0.7-SNAPSHOT</version>
+
+ <properties>
+ <zookeeper.version>3.9.1</zookeeper.version>
+ <curator.version>5.6.0</curator.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.zookeeper</groupId>
+ <artifactId>zookeeper</artifactId>
+ <version>${zookeeper.version}</version>
+ <exclusions>
+ <exclusion>
+ <!-- not relevant at runtime -->
+ <groupId>org.apache.yetus</groupId>
+ <artifactId>audience-annotations</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <!-- Zookeeper dependency, that is inexplicably set to provided.
+ Unfortunately not optional, because the ServerMetrics class, again inexplicably,
+ has a hard dependency on it for testing purposes.-->
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-core</artifactId>
+ <version>4.1.12.1</version>
+ <exclusions>
+ <exclusion>
+ <!-- Distribution provides logging classes -->
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.curator</groupId>
+ <artifactId>curator-recipes</artifactId>
+ <version>${curator.version}</version>
+ <exclusions>
+ <exclusion>
+ <!-- not relevant at runtime -->
+ <groupId>com.google.code.findbugs</groupId>
+ <artifactId>jsr305</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- not relevant at runtime -->
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_annotations</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- supposedly not required -->
+ <groupId>com.google.guava</groupId>
+ <artifactId>failureaccess</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- supposedly not required -->
+ <groupId>com.google.guava</groupId>
+ <artifactId>listenablefuture</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- not relevant at runtime -->
+ <groupId>com.google.j2objc</groupId>
+ <artifactId>j2objc-annotations</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- not relevant at runtime -->
+ <groupId>org.checkerframework</groupId>
+ <artifactId>checker-qual</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- not relevant at runtime -->
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-annotations</artifactId>
+ </exclusion>
+ <exclusion>
+ <!-- Distribution provides logging classes -->
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.zookeeper</groupId>
+ <artifactId>zookeeper</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>shade-amoro</id>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ <dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
+ <artifactSet>
+ <includes>
+ <include>*</include>
+ </includes>
+ </artifactSet>
+ <relocations>
+ <relocation>
+ <pattern>org.apache.zookeeper</pattern>
+ <shadedPattern>${shading.prefix}.zookeeper3.org.apache.zookeeper</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>io.netty</pattern>
+ <shadedPattern>${shading.prefix}.zookeeper3.io.netty</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.jute</pattern>
+ <shadedPattern>${shading.prefix}.zookeeper3.org.apache.jute</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>com.codahale.metrics</pattern>
+ <shadedPattern>${shading.prefix}.zookeeper3.com.codahale.metrics</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>org.apache.curator</pattern>
+ <shadedPattern>${shading.prefix}.zookeeper3.org.apache.curator</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>com.google</pattern>
+ <shadedPattern>${shading.prefix}.zookeeper3.com.google</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <!-- Used to resolve variables in the 'version' tag -->
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>flatten-maven-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
diff --git a/amoro-shade-zookeeper-3/src/main/resources/META-INF/NOTICE b/amoro-shade-zookeeper-3/src/main/resources/META-INF/NOTICE
new file mode 100644
index 0000000..f662f86
--- /dev/null
+++ b/amoro-shade-zookeeper-3/src/main/resources/META-INF/NOTICE
@@ -0,0 +1,25 @@
+amoro-shade-zookeeper-3
+Copyright 2014-2023 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+- com.google.guava:guava:32.0.0-jre
+- commons-io:commons-io:2.11.0
+- io.dropwizard.metrics:metrics-core:4.1.12.1
+- io.netty:netty-buffer:4.1.94.Final
+- io.netty:netty-codec:4.1.94.Final
+- io.netty:netty-common:4.1.94.Final
+- io.netty:netty-handler:4.1.94.Final
+- io.netty:netty-resolver:4.1.94.Final
+- io.netty:netty-transport-classes-epoll:4.1.94.Final
+- io.netty:netty-transport-native-epoll:4.1.94.Final
+- io.netty:netty-transport-native-unix-common:4.1.94.Final
+- io.netty:netty-transport:4.1.94.Final
+- org.apache.curator:curator-client:5.6.0
+- org.apache.curator:curator-framework:5.6.0
+- org.apache.curator:curator-recipes:5.6.0
+- org.apache.zookeeper:zookeeper-jute:3.9.1
+- org.apache.zookeeper:zookeeper:3.1.1
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 01426a7..71331d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,6 +30,7 @@ under the License.
<modules>
<module>amoro-shade-guava-32</module>
<module>amoro-shade-jackson-parent</module>
+ <module>amoro-shade-zookeeper-3</module>
</modules>
<groupId>org.apache.amoro</groupId>
<name>amoro-shade</name>