Use Shade to include dependencies in the final JAR.

This commit is contained in:
2011-05-08 17:54:27 +01:00
parent ef96e43a97
commit 17b40ee3a7

30
pom.xml
View File

@@ -82,10 +82,40 @@
<Implementation-Title>BukkitXMPP</Implementation-Title>
<Implementation-Version>${describe}</Implementation-Version>
<Implementation-Vendor>Matalok</Implementation-Vendor>
<Sealed>true</Sealed>
</manifestEntries>
<manifestSections>
<manifestSection>
<name>com/pleaseignore/BukkitXMPP/</name>
<manifestEntries>
<Sealed>true</Sealed>
</manifestEntries>
</manifestSection>
</manifestSections>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclude>junit:junit</exclude>
<exclude>org.bukkit:*</exclude>
</excludes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>