Wiki source code of Maven Create WO Application Project
                  Version 13.1 by Lachlan Deck on 2009/04/04 17:38
              
      Show last authors
| author | version | line-number | content | 
|---|---|---|---|
| 1 | = Using Apple Plug-in = | ||
| 2 | |||
| 3 | More information [[here>>Apple Maven Nightly Builds]]. | ||
| 4 | |||
| 5 | = Using m2eclipse and woapplication-archetype {{id value="m2eclipse"}}{{/id}} = | ||
| 6 | |||
| 7 | The tutorial below supposes you already have installed [[m2eclipse>>http://m2eclipse.codehaus.org/]] plug-in. You also have to copy the archetype catalog to your local repository as described [[here>>woapplication-archetype]]. For more information about how to configure Maven to build WebObjects applications, see [[this tutorial>>Quick Start]]. | ||
| 8 | |||
| 9 | == Step 1: Create New Maven Project == | ||
| 10 | |||
| 11 | Select the m2eclipse wizard to create a new Maven Project. [[image:m2eclipse_wizard_1.png||align="center"]] | ||
| 12 | |||
| 13 | == Step 2: Select the Project Location == | ||
| 14 | |||
| 15 | Choose the project location for your project. [[image:m2eclipse_wizard_4.png||align="center"]] | ||
| 16 | |||
| 17 | == Step 3: Select the WebObjects Application Archetype == | ||
| 18 | |||
| 19 | Select the Local catalog. [[image:m2eclipse_wizard_2.png||align="center"]] | ||
| 20 | Choose the WebObjects Application archetype as the template for the new project. [[image:m2eclipse_wizard_3.png||align="center"]] | ||
| 21 | |||
| 22 | == Step 4: Define the Project Properties == | ||
| 23 | |||
| 24 | Define the properties that best describe the new project (groupId, artifactId, version and package). | ||
| 25 | |||
| 26 | **Note**: use the SNAPSHOT suffix in project's version to identify as in development version. [[image:m2eclipse_wizard_5.png||align="center"]] | ||
| 27 | You also have to provide 3 specific properties of woapplication-archetype. | ||
| 28 | |||
| 29 | * **WebObjectsVersion**: the WebObjects version. | ||
| 30 | * **WonderSupport**: type 'yes' to add support to Wonder or 'no' otherwise. | ||
| 31 | * **TrueWarSupport**: type 'yes' to add the configuration required to build the application as true WAR or 'no' if you want to build as WOA. | ||
| 32 | |||
| 33 | Finish and you have a WebObjects project following the Maven standard layout. [[image:m2eclipse_wizard_6.png||align="center"]] |