Wiki source code of maven-japplication-plugin

Version 32.1 by Andrus Adamchik on 2006/09/30 19:00

Show last authors
1 == Description ==
2
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}}