JNLP Generator Maven Plugin

New version found at JavaFX Maven Plugin

What does it do?

The unique goal of this plugin is "jnlp". The plugin will activate Velocity to generate a JNLP file out of the master template and all Maven model data (your project information) and especially maven runtime dependencies. The generated JNLP file will be distributed by Maven automatically.

Resources

Activating the plugin

  • Just add the following plugin to your pom.xml file:
    <plugin>
        <groupId>org.jfrog.maven.plugins</groupId>
        <artifactId>jfrog-jnlp-plugin</artifactId>
        <executions>
            <execution>
                <goals>
                    <goal>jnlp</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
    
  • And the following plugin repository to your settings.xml or pom.xml (best practice is to do it in a profile):
    <pluginRepository>
        <id>jfrog-plugins-dist</id>
        <name>jfrog-plugins-dist</name>
        <url>http://repo.jfrog.org/artifactory/plugins-releases-local</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </pluginRepository>
    

Standard configuration

There are multiple configuration parameters, but here is an overview:

<plugin>
    ...
    <configuration>
        <templateFile>master.jnlp</templateFile>
        <targetFile>launcher.jnlp</targetFile>
        <verbose>true</verbose>
        <mainClass>org.jfrog.test.Main</mainClass>
        <useMavenLayout>true</useMavenLayout>
        <attach>true</attach>
        <additionalParameters>
            <iconRef>myapp.png</iconRef>
        </additionalParameters>
        <excludes>
            <exclude>log4j</exclude>
        </excludes>
    </configuration>
</plugin>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Copyright © 2009 JFrog Ltd.