Maven Create WO Application Project

Version 6.1 by Pascal Robert on 2010/10/03 00:55
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Using m2eclipse and woapplication-archetype Invalid macro parameters used for the [id] macro. Cause: [Property [name] mandatory]. Click on this message for details.

The tutorial below supposes you already have installed m2eclipse plug-in. You also have to copy the archetype catalog to your local repository as described here. For more information about how to configure Maven to build WebObjects applications, see this tutorial.

Step 1: Create New Maven Project

Select the m2eclipse wizard to create a new Maven Project. m2eclipse_wizard_1.png

Step 2: Select the Project Location

Choose the project location for your project. m2eclipse_wizard_4.png

Step 3: Select the WebObjects Application Archetype

Select the Local catalog. m2eclipse_wizard_2.png
Choose the WebObjects Application archetype as the template for the new project. m2eclipse_wizard_3.png

Step 4: Define the Project Properties

Define the properties that best describe the new project (groupId, artifactId, version and package).

Note: use the SNAPSHOT suffix in project's version to identify as in development version. m2eclipse_wizard_5.png
You also have to provide 3 specific properties of woapplication-archetype.

  • WebObjectsVersion: the WebObjects version.
  • WonderSupport: type 'yes' to add support to Wonder or 'no' otherwise.
  • TrueWarSupport: type 'yes' to add the configuration required to build the application as true WAR or 'no' if you want to build as WOA.

Finish and you have a WebObjects project following the Maven standard layout. m2eclipse_wizard_6.png