2013-03-07 2 views
1

오늘 maven-izpack-plugin 과 install.xml을 사용하여 maven-project를 설치하기 위해 izpack 설치 프로그램을 만들었습니다.IzPack Installer : 디스크를 선택하십시오

는 빌드는 잘 갔다 :)

을하지만 내가 내가 izpack 창이 비어 있기 때문에 소프트웨어를 저장하려는 디스크를 선택 질수 있기 때문에 나는 지금 내가 문제가있는 installer.jar을 테스트 할 때.

디스크를 가져 가지 않고 이동할 수 없습니다. "설치에 필요한 디스크 공간 사용 가능한 디스크 공간을 초과

가 somone에는이 문제를 해결하는 방법을 nows합니까 Heres는

izpack 받는다는 모듈의 치어 :.?을 heres

<build> 
    <pluginManagement> 
     <plugins> 
      <plugin> 
       <groupId>org.eclipse.m2e</groupId> 
       <artifactId>lifecycle-mapping</artifactId> 
       <version>1.0.0</version> 
       <configuration> 
        <lifecycleMappingMetadata> 
         <pluginExecutions> 
          <pluginExecution> 
           <pluginExecutionFilter> 
            <groupId>org.apache.maven.plugins</groupId> 
            <artifactId>maven-antrun-plugin</artifactId> 
            <versionRange>[1.0.0,)</versionRange> 
            <goals> 
             <goal>run</goal> 
            </goals> 
           </pluginExecutionFilter> 
           <action> 
            <ignore /> 
           </action> 
          </pluginExecution> 
          <pluginExecution> 
           <pluginExecutionFilter> 
            <groupId>org.apache.maven.plugins</groupId> 
            <artifactId>maven-dependency-plugin</artifactId> 
            <versionRange>[1.0.0,)</versionRange> 
            <goals> 
             <goal>copy-dependencies</goal> 
            </goals> 
           </pluginExecutionFilter> 
           <action> 
            <ignore /> 
           </action> 
          </pluginExecution> 
         </pluginExecutions> 
        </lifecycleMappingMetadata> 
       </configuration> 
      </plugin> 
     </plugins> 
    </pluginManagement> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-antrun-plugin</artifactId> 
      <executions> 
       <execution> 
        <id>create-staging-area</id> 
        <phase>process-resources</phase> 
        <goals> 
         <goal>run</goal> 
        </goals> 
        <configuration> 
         <tasks> 
          <copy todir="${izpack.staging}"> 
           <fileset dir="${basedir}/src/izpack" /> 
          </copy> 
         </tasks> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-dependency-plugin</artifactId> 
      <version>2.5.1</version> 
      <executions> 
       <execution> 
        <!-- copy *application* jars to izpack staging lib --> 
        <id>copy-product-dependencies</id> 
        <phase>prepare-package</phase> 
        <goals> 
         <goal>copy-dependencies</goal> 
        </goals> 
        <configuration> 
         <outputDirectory>${izpack.staging}/lib</outputDirectory> 
         <excludeTransitive>false</excludeTransitive> 
         <stripVersion>true</stripVersion> 
         <overWriteReleases>true</overWriteReleases> 
         <overWriteSnapshots>true</overWriteSnapshots> 
         <overWriteIfNewer>true</overWriteIfNewer> 
         <excludeScope>system</excludeScope> <!-- this excludes tools.jar, e.g. --> 
         <excludeArtifactIds>mycustompanels</excludeArtifactIds> <!-- IMPORTANT: don't copy custom panels where our application jars live --> 
         <excludeGroupIds>org.codehaus.izpack</excludeGroupIds> <!-- IMPORTANT: we don't want to copy the izpack dependency where our application 
          jars live --> 
        </configuration> 
       </execution> 
       <execution> 
        <!-- copy izpack custom (custom panels, etc.) jars to izpack staging 
         custom --> 
        <id>copy-izpack-dependencies</id> 
        <phase>prepare-package</phase> 
        <goals> 
         <goal>copy-dependencies</goal> 
        </goals> 
        <configuration> 
         <outputDirectory>${izpack.staging}/custom</outputDirectory> 
         <excludeTransitive>false</excludeTransitive> 
         <stripVersion>true</stripVersion> 
         <overWriteReleases>true</overWriteReleases> 
         <overWriteSnapshots>true</overWriteSnapshots> 
         <overWriteIfNewer>true</overWriteIfNewer> 
        </configuration> 
       </execution> 
      </executions> 
     </plugin> 
     <plugin> 
      <groupId>org.codehaus.izpack</groupId> 
      <artifactId>izpack-maven-plugin</artifactId> 
      <executions> 
       <execution> 
        <phase>package</phase> 
        <goals> 
         <goal>izpack</goal> 
        </goals> 
        <configuration> 
         <!-- base for relative paths in izpack descriptor --> 
         <baseDir>${izpack.staging}</baseDir> 
         <installFile>${basedir}/src/izpack/install.xml</installFile> 
        </configuration> 
       </execution> 
      </executions> 
      <dependencies> 
       <dependency> 
        <groupId>org.codehaus.izpack</groupId> 
        <artifactId>izpack-panel</artifactId> 
        <version>${izpack.version}</version> 
       </dependency> 
      </dependencies> 
     </plugin> 
    </plugins> 
</build> 

<dependencies> 
    <dependency> 
     <groupId>de.projects</groupId> 
     <artifactId>project1</artifactId> 
     <version>0.0.1-SNAPSHOT</version> 
    </dependency> 
    <dependency> 
     <groupId>de.projects</groupId> 
     <artifactId>project2</artifactId> 
     <version>0.0.1-SNAPSHOT</version> 
    </dependency> 
</dependencies> 

<properties> 
    <izpack.version>5.0.0-beta11</izpack.version> 
    <izpack.staging>${project.build.directory}../../../dist/staging</izpack.staging> 
</properties> 

INSTALL.XML

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?> 
<installation version="5.0"> 
<info> 
    <appname>myApp</appname> 
    <appversion>1.0</appversion> 
    <uninstaller name="Uninstaller.jar" write="yes"/> 
    <javaversion>1.7</javaversion> 
    <requiresjdk>no</requiresjdk> 
    <writeinstallationinformation>yes</writeinstallationinformation> 
    <pack200/> 
    <run-privileged condition="izpack.windowsinstall.vista|izpack.windowsinstall.7"/> 
</info> 
<guiprefs height="600" resizable="no" width="800"> 
    <modifier key="useFlags" value="yes"/> 
    <modifier key="langDisplayType" value="default"/> 
</guiprefs> 
<locale> 
    <langpack iso3="eng"/> 
</locale> 
<panels> 
    <panel classname="CheckedHelloPanel"/> 
    <panel classname="PacksPanel"/> 
    <panel classname="TargetPanel"/> 
    <panel classname="InstallPanel"/> 
    <panel classname="SimpleFinishPanel"/> 
</panels> 
<packs> 
    <pack name="Data" preselected="yes" required="yes"> 
     <description/> 
     <file override="update" 
      src="home\dist\data" targetdir="$INSTALL_PATH/"/> 
    </pack> 
    <pack name="Libs" preselected="yes" required="yes"> 
     <description/> 
     <file override="update" 
      src="home\dist\lib" targetdir="$INSTALL_PATH/"/> 
    </pack> 
</packs> 

답변

0

마에하세요 PacksPanel 앞에 targetPanel을 install.xml에 배치하십시오. 그 이유는 PackPanel 구현시 TargetPanel이 이전에 배치 된 경우 올바르게 제공 할 $ INSTALL_PATH가 필요하기 때문입니다.

<panel classname="TargetPanel"/> 
<panel classname="PacksPanel"/>