Ich benutze maven-assembly-plugin zum Erstellen einer Zip-Datei, die einige Artefakte und zusätzliche Sachen enthält. Das zusätzliche Zeug befindet sich in einem Ordner namens "Installationattachments". Bis jetzt läuft alles gut. "Installationattachments" enthält auch eine PNG- und eine ICO-Datei, die ebenfalls enthalten sind, aber diese sind nach der Einbindung defekt. Hier ist das Plugin Erklärung meiner pom.xml:maven-assembly-plugin png und ico kaputt
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>src/assembly/dep.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>create-archive</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<inherited>false</inherited>
</plugin>
Und das ist der kritische Teil der Baugruppe selbst:
<!-- installation files -->
<fileSet>
<directory>Installationattachments</directory>
<outputDirectory></outputDirectory>
<lineEnding>unix</lineEnding>
<excludes>
<exclude>*.vbs</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>Installationattachments</directory>
<outputDirectory></outputDirectory>
<lineEnding>dos</lineEnding>
<includes>
<include>*.vbs</include>
</includes>
</fileSet>