[KYUUBI-SHADED #7] Shorten relocated package name
### _Why are the changes needed?_
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
Closes #7 from pan3793/package-name.
2114cc9 [Cheng Pan] shaded package name
Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
diff --git a/kyuubi-shaded-zookeeper-parent/pom.xml b/kyuubi-shaded-zookeeper-parent/pom.xml
index 17e7630..3bc16ac 100644
--- a/kyuubi-shaded-zookeeper-parent/pom.xml
+++ b/kyuubi-shaded-zookeeper-parent/pom.xml
@@ -37,11 +37,6 @@
<module>kyuubi-shaded-zookeeper-36</module>
</modules>
- <properties>
- <shading.zookeeper.prefix>${shading.prefix}.zookeeper</shading.zookeeper.prefix>
- <shading.curator.prefix>${shading.prefix}.curator</shading.curator.prefix>
- </properties>
-
<build>
<plugins>
<plugin>
@@ -65,27 +60,23 @@
<relocations>
<relocation>
<pattern>org.apache.zookeeper</pattern>
- <shadedPattern>${shading.zookeeper.prefix}.org.apache.zookeeper</shadedPattern>
- </relocation>
- <relocation>
- <pattern>io.netty</pattern>
- <shadedPattern>${shading.zookeeper.prefix}.io.netty</shadedPattern>
+ <shadedPattern>${shading.prefix}.zookeeper</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.jute</pattern>
- <shadedPattern>${shading.zookeeper.prefix}.org.apache.jute</shadedPattern>
+ <shadedPattern>${shading.prefix}.jute</shadedPattern>
</relocation>
<relocation>
<pattern>com.codahale.metrics</pattern>
- <shadedPattern>${shading.zookeeper.prefix}.com.codahale.metrics</shadedPattern>
+ <shadedPattern>${shading.prefix}.metrics</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.curator</pattern>
- <shadedPattern>${shading.curator.prefix}.org.apache.curator</shadedPattern>
+ <shadedPattern>${shading.prefix}.curator</shadedPattern>
</relocation>
<relocation>
<pattern>com.google</pattern>
- <shadedPattern>${shading.curator.prefix}.com.google</shadedPattern>
+ <shadedPattern>${shading.prefix}.google</shadedPattern>
</relocation>
</relocations>
</configuration>