Java 用于生成ISO文件的Maven插件

Java 用于生成ISO文件的Maven插件,java,maven-2,plugins,iso,Java,Maven 2,Plugins,Iso,是否有maven插件能够生成ISO图像 我需要获取一些模块的输出(大部分是包含JAR的zip文件),并将它们组合成一个ISO映像 谢谢你,看来你能做到。但这只是第三手资料。我不知道有任何本机集成(当然是在汇编插件中),但看起来下面的库是可用的: 这可以包装在Maven插件中,或者为了更简单地与Maven AntRun插件和预绑定的ant任务集成使用。现在有一个ISO9660 Maven插件可以完成这项工作: 文档很少,但可以使用以下内容: <plugin> <grou

是否有maven插件能够生成ISO图像

我需要获取一些模块的输出(大部分是包含JAR的zip文件),并将它们组合成一个ISO映像


谢谢你,看来你能做到。但这只是第三手资料。

我不知道有任何本机集成(当然是在汇编插件中),但看起来下面的库是可用的:


这可以包装在Maven插件中,或者为了更简单地与Maven AntRun插件和预绑定的ant任务集成使用。

现在有一个ISO9660 Maven插件可以完成这项工作:

文档很少,但可以使用以下内容:

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

com.github.stephenc.java-iso-tools
iso9660 maven插件
1.2.2
生成iso
iso
包裹
${project.build.finalName}.iso
${project.build.directory}/iso

com.github.stephenc.java-iso-tools
iso9660 maven插件
2.0.1
生成iso窗口
iso
准备包装
真的
真的
真的
IsoFileName.iso
目标/输入

org.codehaus.mojo
execmaven插件
1.2.1
执行官
验证
生殖影像
-五
${iso.name}
-m
*.iso
-直接模式
0555
-文件模式
0555
-基德
0
-液体
0
-iso级别
2.
-J
-乔利特朗
-r
-o
${project.build.directory}/${iso.name}
${iso.preparation.dir}

它只能在linux机器上执行如果生成的ISO为只读,则将“enableRockRidge”设置为false。如何指定哪些工件进入ISO?
<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>
     <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>