Apache » Cocoon »

  Cocoon Maven Plugins
      2.2
   homepage

Cocoon Maven Plugins 2.2

List

All the listed modules require a working Maven 2 (2.0.6 or higher) installation. If you are not familiar with Maven 2, see

Name Versions

Description

Cocoon Maven Plugin

1.0

The Cocoon Maven plugin contains several goals that make the life of software developers easier, e.g. support for running blocks as webapps or support for paching the web.xml at deployment time.

Cocoon Integration Test Framework

1.0

The Cocoon Integration Test Framework provides support for running integration tests.

Block Archetype

1.0

This archetype creates a Cocoon block that comes with some small samples. The purpose of them is not to show every possible feature but at least something that already works and where you can start a Cocoon project from:

mvn archetype:create
  -DarchetypeGroupId=org.apache.cocoon
  -DarchetypeArtifactId=cocoon-22-archetype-block
  -DarchetypeVersion=1.0.0
  -DgroupId=com.mycompany
  -DartifactId=myBlock
Note: Once again, for simple copy and paste:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -DartifactId=myBlock

See the Your first Cocoon application tutorial for further details.

Webapp Archetype

1.0

Use this archetype to create a web application that is configured to host Cocoon blocks. You only need to add the blocks dependencies:

mvn archetype:create
  -DarchetypeGroupId=org.apache.cocoon
  -DarchetypeArtifactId=cocoon-22-archetype-webapp
  -DarchetypeVersion=1.0.0
  -DgroupId=com.mycompany
  -DartifactId=myCocoonWebapp
Note: Once again, for simple copy and paste:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-webapp -DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -DartifactId=myCocoonWebapp

See the Deploying a Cocoon application tutorial for further details.

Plain Block Archetype

1.0

Use this archetype to create an empty Cocoon block. It is only useful if you want to add yet another block to your Cocoon based application (e.g. there are plugin configured and the dependencies don't have a version set):

mvn archetype:create
  -DarchetypeGroupId=org.apache.cocoon
  -DarchetypeArtifactId=cocoon-22-archetype-block-plain
  -DarchetypeVersion=1.0.0
  -DgroupId=com.mycompany
  -DartifactId=myBlock
Note: Once again, for simple copy and paste:
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-block-plain -DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -DartifactId=myBlock