2010-04-12 18 views

回答

6

現在有一個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> 
+0

如何一個指定什麼文物進入ISO? – 2017-01-17 20:25:23

2

我不知道任何本地集成(當然在大會插件),但它看起來像下面的庫可:http://jiic.berlios.de/

這可以被包裹在一個Maven插件,或使用簡單的整合使用Maven AntRun插件和預捆綁的ant任務。

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

如果ISO生成是隻讀的,則將「enableRockRidge」設置爲false。 – 2016-09-21 10:30:59

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

它只能在linux機器上執行 – 2016-08-03 09:20:42

相關問題