Changes for page maven-japplication-plugin
Last modified by Andrus Adamchik on 2007/02/27 09:12
From version 28.1
edited by Andrus Adamchik
on 2006/09/30 19:19
on 2006/09/30 19:19
Change comment:
There is no comment for this version
To version 31.1
edited by Andrus Adamchik
on 2006/09/30 19:00
on 2006/09/30 19:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,7 @@ 1 1 == Description == 2 2 3 -"maven-japplication-plugin" is a plugin for assembling native launchers of Java applications for a number of target platforms. Currentproject artifactand all itsdeclaredandtransitivedependencies will be bundledintothelauncher. 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".--3 +"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>>JApplication]]. 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".-- 4 4 5 -"maven-japplication-plugin" is based on a [[JApplication Ant task>>JApplication]] and has similar capabilities, however the Maven environment provides more information about the project, so plugin has fewer required parameters. 6 - 7 7 == Prerequisites == 8 8 9 9 Prerequisites and OS requirements are similar to those for [[JApplication Ant task>>JApplication]]. In particular for Windows you will need to install [[NSIS>>http://nsis.sourceforge.net/Main_Page]]. ... ... @@ -10,25 +10,11 @@ 10 10 11 11 == Goals == 12 12 13 - ===##org.objectstyle.woproject.maven2:japplication:japplication##===11 +The plugin defines a single goal ##"japplication"##. 14 14 15 -"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. 16 - 17 -|=Parameter|=Description|=Required|=Default|=Platforms 18 -|name|The name of the application without OS-specific extension|No|##$project.artifact.artifactId##| 19 -|mainClass|Main Java class|Yes| | 20 -|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".| 21 -|destDir|A destination directory where the application launcher should be installed|No|##$project.build.directory## - usually ##"target/"##| 22 -|longName|An optional string identifying the application human-readable name. If not specified, "name" is used.|No|##$project.artifact.artifactId-$project.artifact.version##| 23 -|icon|Platform-specific icon file (usually ".ico" on Windows and ".icns" on Mac)|No| |mac,windows 24 -|jvm|Minimal version of the Java Virtual machine required.|No|##1.4+##|mac 25 -|jvmOptions|Optional parameters to pass to the JVM, such as memory settings, etc.|No| |mac,windows 26 -|nsisHome|Location of NSIS installation. Ignored except on Windows.|No |##C:rogram FilesSIS##|windows 27 -|version|Product version string|No|##$project.artifact.version##|mac 28 - 29 29 == Examples == 30 30 31 -A POM that builds a Fooapplication on Mac. All declared and transitive dependencies (not shown here) will be included inFoo.app automatically:15 +A POM that builds a CayenneModeler application on Mac. All dependencies (not shown here) will be included in CayenneModeler.app automatically. 32 32 33 33 {{code title="pom.xml"}} 34 34 <?xml version="1.0" encoding="UTF-8"?> ... ... @@ -37,6 +37,7 @@ 37 37 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 38 38 39 39 ... 24 + 40 40 <build> 41 41 <plugins> 42 42 <plugin> ... ... @@ -43,8 +43,8 @@ 43 43 <groupId>org.objectstyle.woproject.maven2</groupId> 44 44 <artifactId>maven-japplication-plugin</artifactId> 45 45 <configuration> 46 - <name> Foo</name>47 - <mainClass>org.e xample.foo.Main</mainClass>31 + <name>CayenneModeler</name> 32 + <mainClass>org.apache.cayenne.modeler.MacOSXMain</mainClass> 48 48 <os>mac</os> 49 49 </configuration> 50 50 <executions>