Hi,
nachdem ich jetzt mit dem Shade-Plugin gespielt habe und zunächst eine 60 MB Monster-Uber-Jar gebaut habe (das Skript hat zunächst erstmal die fs-access.jar, fs-client.jar usw. mit einbezogen) und dann mit Excludes rumgespielt habe habe ich rausgefunden, dass die verendung von Includes alles andere außschließt, zumindest wird jetzt NICHTS außer die "geshadede" commons-io version mit ins JAR gepackt:
<!-- Rename commons-io to avoid problems with outdated firstspirit libs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<!--<minimizeJar>true</minimizeJar>-->
<relocations>
<relocation>
<pattern>org.apache.commons.io</pattern>
<shadedPattern>org.apache.commons.io.fs</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes>
<include>commons-io</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/license/**</exclude>
<exclude>META-INF/*</exclude>
<exclude>META-INF/maven/**</exclude>
<exclude>LICENSE</exclude>
<exclude>NOTICE</exclude>
<exclude>/*.txt</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
Die Filter kann man noch entfernen aber da ich zunächst zu viel hatte und experimentiert hatte habe ich sie für andere als Beispiel mal drin gelassen.
MfG Marcus