To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.
The woapplication-archetype is a template to create WebObjects applications. If you start a project using this archetype, all the basic WebObjects files are generated following the standard directory layout.
At the time of writing, the Archetype plug-in was in a very early alpha version. This plug-in uses catalogs to know about specific archetypes. You can download the archetype catalog with information about the woapplication-archetype here. You have to save this file into your local repository (.m2) or merge the contents if a file with the same name already exists.
Currently (February 2009) this creates wonder supported projects that refer to a groupid of wonder.common, this should be wonder.core.
This archetype allows you to generate a basic project for a WebObjects application. To use this archetype execute the following command:
Ensure you have the latest archetype-catalog.xml file to ensure you're referencing the correct repository and artifacts
Choose the archetype:
Define the project properties:
See Building the wonder source code with maven ( http://wiki.objectstyle.org/confluence/display/WOL/Building+the+wonder+source+code+with+maven ) for selecting the correct versions of Wonder ( for WebObjects 5.3.x or 5.4.x ).
"Having a common directory layout would allow for users familiar with one Maven project to immediately feel at home in another Maven project. The advantages are analogous to adopting a site-wide look-and-feel." (http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html)
The woapplication-archetype provides some additional directories to conform to WebObjects development in addition to the Maven Standard Directory Layout:
All resources and webserver-resources structured inside sub folders (i.e. webserver-resources/css/sample.css) will be packaged with the same structure (i.e. WebServerResources/css/sample.css). maven-wolifecycle-plugin has an option (flattenResources) to automatically flatten these resources.
If you want more control over this configuration, you can configure the resources in your pom.xml like this: