Overview of the main usages.
There are many ways to use the Webstart Maven Plugin and several goals are available to support your needs.
Deciding on which approach to use depends on your build and deployment needs. Here are some questions that will help you decide which approach suits you best.
See also FAQ.
The jnlp-download-servlet goal is similar to the 3 other JNLP goals, but has a slightly different configuration file format.
Note: In the future, we will work to make the 2 configurations more similar to ease going from simple projects to those using jnlp-download-servlet.
General Information about the goals.
One typically attaches the jnlp-inline goal to the package phase and execute:
mvn package
Sometimes one wants to prepare the bundle from the command line, so one reuses the goal directly on the command line.
mvn webstart:jnlp-inline
Finally one may need to add the current module as a dependency to the Webstart bundle and not install the resulting ZIP file in the local repository.
mvn install webstart:jnlp
Package your module as WAR, add the appropriate dependency to Sun's Download Servlet (see JNLP 101), and attach the jnlp-download-servlet goal to a phase prior to the package phase. Then do:
mvn package