Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples

A POM that builds a CayenneModeler Foo application on Mac. All declared and transitive dependencies (not shown here) will be included in CayenneModelerFoo.app automatically.:

Code Block
titlepom.xml
<?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>Foo</name>
					<mainClass>org.apacheexample.cayennefoo.modeler.MacOSXMain<Main</mainClass>
					<os>mac</os>
				</configuration>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>japplication</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>