Search code examples
javamaven-2pluginsiso

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


Solution

  • 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>