java - Add InstallerListener to IzPack installer project with Maven -


i have working izpack installer project set maven , added following install script install.xml [installation][listeners]:

<listener classname="(company-name).listener.installerlistener" stage="install"/>


sadly, line seems ignored , debugger not halt on set breakpoints in installlistener class. have read the documentation installlisteners, not useful have build process integrated maven; here relevant parts of project object model pom.xml:

<properties>     <izpack-standalone.version>4.3.1</izpack-standalone.version> </properties>  <dependencies>     <!-- izpack -->     <dependency>         <groupid>org.codehaus.izpack</groupid>         <artifactid>izpack-standalone-compiler</artifactid>         <version>${izpack-standalone.version}</version>         <optional>true</optional>     </dependency> </dependencies>  <plugins>         <!--  izpack compiler  -->     <plugin>         <groupid>org.codehaus.izpack</groupid>         <artifactid>izpack-maven-plugin</artifactid>         <version>${org.codehaus.izpack.izpack-maven-plugin.version}</version>         <dependencies>             <dependency>                 <groupid>org.codehaus.izpack</groupid>                 <artifactid>izpack-standalone-compiler</artifactid>                 <version>${izpack-standalone.version}</version>             </dependency>         </dependencies>         <configuration>             <izpackbasedir>${staging.dir}</izpackbasedir>             <custompaneldirectory>${staging.dir}</custompaneldirectory>         </configuration>         <executions>             <execution>                 <id>standard-installer</id>                 <phase>package</phase>                 <goals>                     <goal>izpack</goal>                 </goals>             </execution>         </executions>     </plugin> </plugins> 

what missing here?


note: compiled installer contain specified installerlistener class file, available @ runtime.

you must place jar file containing panel classes {custompaneldirectory}/bin/panels folder picked automatically izpack-maven-plugin.

in case above folder resolve {staging.dir}/bin/panels since configured <custompaneldirectory>${staging.dir}</custompaneldirectory>.

adding install.xml file not work, since resolved @ install time, not @ installer build time.


Comments