Maven -Plugin zum Generieren der ISO -Datei
Frage
Gibt es ein Maven -Plugin, das ISO -Bilder erzeugen kann?
Ich muss die Ausgabe einiger Module (hauptsächlich Zip -Dateien mit Gläser) übernehmen und sie zu einem einzelnen ISO -Bild kombinieren.
Vielen Dank
Lösung
Es gibt jetzt ein ISO9660 -Maven -Plugin, das den Job erledigt:
https://github.com/stephenc/java-iso-tools/commits/master/iso9660-maven-plugin
Die Dokumentation ist spärlich, hat aber mit Folgendem gearbeitet:
<plugin>
<groupId>com.github.stephenc.java-iso-tools</groupId>
<artifactId>iso9660-maven-plugin</artifactId>
<version>1.2.2</version>
<executions>
<execution>
<id>generate-iso</id>
<goals>
<goal>iso</goal>
</goals>
<phase>package</phase>
<configuration>
<finalName>${project.build.finalName}.iso</finalName>
<inputDirectory>${project.build.directory}/iso</inputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Andere Tipps
Mir ist keine native Integration (sicherlich im Montage -Plugin) bekannt, aber es sieht so aus, als ob die folgende Bibliothek verfügbar ist: http://jiic.berlios.de/
Dies könnte in ein Maven-Plugin oder für eine einfachere Integration mit dem Maven Antrun-Plugin und der vorbündelten Ameisenaufgabe eingewickelt werden.
<plugin>
<groupId>com.github.stephenc.java-iso-tools</groupId>
<artifactId>iso9660-maven-plugin</artifactId>
<version>2.0.1</version>
<executions>
<execution>
<id>generate-iso-windows</id>
<goals>
<goal>iso</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<enableRockRidge>true</enableRockRidge>
<enableJoliet>true</enableJoliet>
<hideMovedDirectoriesStore>true</hideMovedDirectoriesStore>
<finalName>IsoFileName.iso</finalName>
<inputDirectory>target/input</inputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Aus Dieser Mail -Archiv -Austausch, es scheint das zu sein Maven -Montage -Plugin könnte den Trick machen. Aber es ist nur eine Info Dritter.
<plugin>
<!-- ISO generation. -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
<configuration>
<executable>genisoimage</executable>
<arguments>
<argument>-V</argument>
<argument>${iso.name}</argument>
<argument>-m</argument>
<argument>*.iso</argument>
<argument>-dir-mode</argument>
<argument>0555</argument>
<argument>-file-mode</argument>
<argument>0555</argument>
<argument>-gid</argument>
<argument>0</argument>
<argument>-uid</argument>
<argument>0</argument>
<argument>-iso-level</argument>
<argument>2</argument>
<argument>-J</argument>
<argument>-joliet-long</argument>
<argument>-r</argument>
<argument>-o</argument>
<argument>${project.build.directory}/${ iso.name }</argument>
<argument>${iso.preparation.dir}</argument>
</arguments>
</configuration>
</plugin>