Cleaned shaded kryo2 jar.
Avoid re-shading already shaded package path
diff --git a/kryo2/pom.xml b/kryo2/pom.xml
index 788f952..d81a16a 100644
--- a/kryo2/pom.xml
+++ b/kryo2/pom.xml
@@ -28,14 +28,15 @@
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<configuration>
- <relocations>
- <relocation>
- <pattern>com.esotericsoftware.kryo</pattern>
- <shadedPattern>com.esotericsoftware.kryo2</shadedPattern>
- <excludes>
- </excludes>
- </relocation>
- </relocations>
+ <relocations>
+ <relocation>
+ <pattern>com.esotericsoftware.kryo</pattern>
+ <shadedPattern>com.esotericsoftware.kryo2</shadedPattern>
+ <excludes>
+ <exclude>com.esotericsoftware.kryo2*</exclude>
+ </excludes>
+ </relocation>
+ </relocations>
</configuration>
<executions>
<execution>
diff --git a/rebuild-local-repo.sh b/rebuild-local-repo.sh
index 4ea1fbf..558bcfb 100755
--- a/rebuild-local-repo.sh
+++ b/rebuild-local-repo.sh
@@ -18,7 +18,7 @@
# Install Kryo2 workaround to local repo
# - Shaded(rename package name to allow mixing 2 different Kryo version)
# - Install created sharded jar to local repo
-${MVN} -f kryo2/pom.xml package exec:exec
+${MVN} -f kryo2/pom.xml clean package exec:exec
# Install modified curators to local repo
${MVN} install:install-file -Dfile=./curator/curator-framework-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-framework -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true