Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven plugin for generating ISO file

Is there a maven plugin capable of generating ISO images?

I need to take the output of some modules (mostly zip files containing jars) and combine them into a single ISO image.

Thanks

like image 277
Lehane Avatar asked Dec 28 '22 20:12

Lehane


2 Answers

There is now an ISO9660 maven plugin that does the job:

https://github.com/stephenc/java-iso-tools/commits/master/iso9660-maven-plugin

Documentation is sparse but got it working with the following:

<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>
like image 191
prunge Avatar answered Dec 31 '22 13:12

prunge


I'm not aware of any native integration (certainly in the Assembly plugin), but it looks like the following library is available: http://jiic.berlios.de/

This could be wrapped in a Maven plugin, or for simpler integration used with the Maven AntRun plugin and the pre-bundled ant task.

like image 40
Brett Porter Avatar answered Dec 31 '22 15:12

Brett Porter