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

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Description

Warning
titleWarning

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:

No Format
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
titleWarning

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.

No Format
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