Apache » Cocoon »

  Cocoon Maven Plugin

Cocoon Maven Plugin 1.0

Using the Cocoon Deployer

Step 1: Basics

In order to use the Cocoon Deployer, you need a Cocoon web application, e.g. one that is generated as described in the Getting Started Tutorial. Expressed in terms of Maven 2, it mean that the packaging type in your pom.xml is war.

Step 2: Enabling the deployer

Enable the Cocoon Maven plugin in your pom.xml:


Step 3: Configuration

You can also provide configuration properties. Use the goal documentation generated from the Javadoc comments to find out more.

Step 4: Invoke the deployer

Finally you have to invoke the plugin. If you want to do this manually, enter

mvn cocoon:deploy


mvn cocoon:deploy-war