Refactor CraftBukkit dependencies. Fixes BUKKIT-2329

The maven shade plugin has the ability to change the namespace for
included dependencies and packages. This change is being implemented to
remove all conflicts with any possible libraries in an execution
environment.

The only dependencies to be refactored are specific to CraftBukkit. To
refactor dependencies included with Bukkit breaks any plugin compiled
against those specific dependencies, especially ebeans--an API
specifically encouraged for database management.
This commit is contained in:
Wesley Wolfe 2012-08-19 15:42:54 -05:00 committed by feildmaster
parent dcd01bf0c0
commit 9580c3e39a

38
pom.xml
View file

@ -222,6 +222,44 @@
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.bouncycastle</pattern>
<shadedPattern>net.minecraft.org.bouncycastle</shadedPattern>
</relocation>
<relocation>
<pattern>joptsimple</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.joptsimple</shadedPattern>
</relocation>
<relocation>
<pattern>jline</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.jline</shadedPattern>
</relocation>
<relocation>
<pattern>org.fusesource</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.fusesource</shadedPattern>
</relocation>
<relocation>
<pattern>org.sqlite</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.sqlite</shadedPattern>
</relocation>
<relocation>
<pattern>org.ibex</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.ibex</shadedPattern>
</relocation>
<relocation>
<pattern>com.mysql</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.com.mysql</shadedPattern>
</relocation>
<relocation>
<pattern>org.gjt</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.org.gjt</shadedPattern>
</relocation>
<relocation>
<pattern>com.google.gson</pattern>
<shadedPattern>org.bukkit.craftbukkit.libs.com.google.gson</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<excludes>
<exclude>junit:junit</exclude>