...
"maven-japplication-plugin" is based on a JApplication Ant task and has similar capabilities, however the Maven environment provides more information about the project, so plugin has no fewer required parameters.
Prerequisites and OS requirements are similar to those for JApplication Ant task. In particular for Windows you will need to install NSIS.
...
org.objectstyle.woproject.maven2:japplication:japplication
"japplication" is the only defined goal. Its purpose is to assemble a java launcher. It has the parameters described below. The difference from JApplication Ant task is in smarter defaults.
Parameter | Description | Required | Default | Platforms |
---|---|---|---|---|
name | The name of the application without OS-specific extension | No |
|
|
mainClass | Main Java class | Yes |
|
|
os | A family of operating systems. Currently supported values are "mac", "windows" and "java" | No | Build machine OS, if omitted; if the os is not supported, will use "java". |
|
destDir | A destination directory where the application launcher should be installed | No |
|
|
longName | An optional string identifying the application human-readable name. If not specified, "name" is used. | No |
|
|
icon | Platform-specific icon file (usually "*.ico" on Windows and "*.icns" on Mac) | no | mac,windows | |
jvm | Minimal version of the Java Virtual machine required. | no (default is "1.4+") | mac | |
jvmOptions | Optional parameters to pass to the JVM, such as memory settings, etc. | no | mac,windows | |
nsisHome | Location of NSIS installation. Ignored except on Windows. | no (default is "C:\Program Files\NSIS") | windows | |
version | Product version string | no (default 0.0) | mac |
A POM that builds a Foo application on Mac. All declared and transitive dependencies (not shown here) will be included in Foo.app automatically:
...