Apache » Cocoon »

  Cocoon Maven Plugin
      1.0
   homepage

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:

<project>
  <build>
    <plugins>
      [...]
      <plugin>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-maven-plugin</artifactId>
        <version>1.0.0-M2</version>
        <configuration>
          [...]
        </configuraiton>
      </plugin>
      [...]
    </plugins>
  </build>
</project>   

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

or

mvn cocoon:deploy-war