Changes for page maven-japplication-plugin

Last modified by Andrus Adamchik on 2007/02/27 09:12

From version 30.1
edited by Andrus Adamchik
on 2006/09/30 18:53
Change comment: There is no comment for this version
To version 31.1
edited by Andrus Adamchik
on 2006/09/30 19:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,3 +1,48 @@
1 1  == Description ==
2 2  
3 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 +
5 +== Prerequisites ==
6 +
7 +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]].
8 +
9 +== Goals ==
10 +
11 +The plugin defines a single goal ##"japplication"##.
12 +
13 +== Examples ==
14 +
15 +A POM that builds a CayenneModeler application on Mac. All dependencies (not shown here) will be included in CayenneModeler.app automatically.
16 +
17 +{{code title="pom.xml"}}
18 +<?xml version="1.0" encoding="UTF-8"?>
19 +<project xmlns="http://maven.apache.org/POM/4.0.0"
20 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
22 +
23 +...
24 +
25 + <build>
26 + <plugins>
27 + <plugin>
28 + <groupId>org.objectstyle.woproject.maven2</groupId>
29 + <artifactId>maven-japplication-plugin</artifactId>
30 + <configuration>
31 + <name>CayenneModeler</name>
32 + <mainClass>org.apache.cayenne.modeler.MacOSXMain</mainClass>
33 + <os>mac</os>
34 + </configuration>
35 + <executions>
36 + <execution>
37 + <phase>package</phase>
38 + <goals>
39 + <goal>japplication</goal>
40 + </goals>
41 + </execution>
42 + </executions>
43 + </plugin>
44 + </plugins>
45 + </build>
46 +</project>
47 +
48 +{{/code}}