To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.

Description

Warning

This archetype is DEPRECATED. Use the new woapplication-archetype instead.

"maven-archetype-woapplication" is a model for WebObjects applications creation. If you start a project using this archetype, all the basic WebObjects files are generated following the standard directory layout.

How to use

This archetype allows you to generate a template for a WebObjects application. So, creating the template of the application is as easy as using the command:

mvn archetype:generate -DarchetypeGroupId=org.objectstyle.woproject.maven2    \
                     -DarchetypeArtifactId=maven-archetype-woapplication    \
                     -DarchetypeVersion=2.0-SNAPSHOT                        \
                     -DgroupId=my.group                                     \
                     -DartifactId=my-app

This command creates a blank WebObjects application with groupId=my.group and artifactId=my-app. Both values can be changed to adjust your needs.

Standard Directory Layout for WebObjects Applications

Warning

It's a working in progress task.

"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)

"maven-archetype-woapplication" provides some additional directories to conform to WebObjects development in addition to the Maven Standard Directory Layout.

my-app
|-- pom.xml
`-- src
    `-- main
        |-- java
        |   `-- my
        |       `-- group
        |           |-- Application.java
        |           |-- DirectAction.java
        |           |-- Main.java
        |           `-- Session.java
        |
        |-- resources
        |   |-- Main.api
        |   |-- Info.plist
        |   |-- Properties
        |   `-- Main.wo
        |       |-- Main.html
        |       |-- Main.wod
        |       `-- Main.woo
        |
        |-- webapp
        |   `-- WEB-INF
        |       `-- web.xml
        |
        `-- webserver-resources
  • No labels