My favorites | Sign in
Project Home Wiki Issues Source
Project Information
Members
Featured
Wiki pages
Links

This Maven plugin provides ej-technologies' install4j with Maven 2 integration.

To make use of the plugin, include the following configuration in your project's POM:

<project>
  ...
  <properties>
    <!-- Set the following property in your ~/.m2/settings.xml file to the location of the 
      install4jc executable, e.g. "c:/Program Files/install4j/bin/install4jc.exe" -->
    <devenv.install4jc>SET_ME_IN_SETTINGS.XML</devenv.install4jc>
  </properties>
  ...
  <pluginRepositories>
    <pluginRepository>
      <id>googlecode-maven-install4j</id>
      <name>googlecode-maven-install4j</name>
      <url>http://maven-install4j.googlecode.com/svn/m2-repo</url>
    </pluginRepository>
  </pluginRepositories>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>com.google.code.maven-install4j</groupId>
        <artifactId>maven-install4j-plugin</artifactId>
        <version>0.1.1</version>
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <executable>${devenv.install4jc}</executable>
          <configFile>${basedir}/my-i4j-config.install4j</configFile>
          <releaseId>${project.version}</releaseId>
          <attach>true</attach>
          <skipOnMissingExecutable>true</skipOnMissingExecutable>
          <compilerVariables>
            <property>
              <name>my-compiler-variable-1</name>
              <value>some-value</value>
            </property>
          </compilerVariables>
        </configuration>
      </plugin>
    </plugins>
  </build>
  ...
</project>

Other configuration options are available. For more information, the best source of documentation is Install4jMojo.java itself.

Please note that as of right now, the plugin isn't very smart about how it finds installer files that ought to be attached: it will attach any canExecute() files it finds in the output directory.

Powered by Google Project Hosting