Description

"maven-japplication-plugin" is a plugin for assembling native launchers of Java applications for a number of target platforms. It is based on a similar JApplication Ant task. Currently supports native launchers for Mac and Windows operating systems and also a "java launcher" - a single jar file that can be run via "java -jar file.jar".

Prerequisites

Prerequisites and OS requirements are similar to those for JApplication Ant task. In particular for Windows you will need to install NSIS.

Goals

The plugin defines a single goal "japplication".

Examples

A POM that builds a CayenneModeler application on Mac. All dependencies (not shown here) will be included in CayenneModeler.app automatically.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

...

	<build>
		<plugins>
			<plugin>
				<groupId>org.objectstyle.woproject.maven2</groupId>
				<artifactId>maven-japplication-plugin</artifactId>
				<configuration>
					<name>CayenneModeler</name>
					<mainClass>org.apache.cayenne.modeler.MacOSXMain</mainClass>
					<os>mac</os>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>japplication</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>