4

ISO イメージを生成できる Maven プラグインはありますか?

いくつかのモジュール (ほとんどの場合、jar を含む zip ファイル) の出力を取得し、それらを 1 つの ISO イメージに結合する必要があります。

ありがとう

4

5 に答える 5

7

ジョブを実行する ISO9660 maven プラグインが追加されました。

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

ドキュメントはまばらですが、次のように動作します。

<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>
于 2011-11-27T23:43:11.157 に答える
2

ネイティブ統合については知りませんが (確かに Assembly プラグインで)、次のライブラリが利用できるようです: http://jiic.berlios.de/

これは、Maven プラグインにラップすることも、Maven AntRun プラグインと事前にバンドルされた ant タスクを使用して簡単に統合することもできます。

于 2010-04-12T11:53:28.560 に答える
1
<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>
于 2016-08-03T09:07:07.260 に答える
0
     <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>                                             
于 2016-08-03T09:19:49.663 に答える
0

このメール アーカイブ交換から、Maven アセンブリ プラグインでうまくいくようです。しかし、それはあくまでも第三者の情報です。

于 2010-04-12T09:32:40.530 に答える