Apache » Cocoon »

  Cocoon Maven Plugin
      1.0.2
   homepage

Cocoon Maven Plugin 1.0.2

cocoon:deploy

Full name:

org.apache.cocoon:cocoon-maven-plugin:1.0.2:deploy

Description:

Create a web application that makes use of Cocoon blocks. In the case of a web application module, (packaging: war) all referenced blocks are added, in the case of block (packaging: jar) additionally a minimal Cocoon environemt is created and it is also possible to reference other locally available blocks and to set custom properties to make development highly dynamic.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: runtime.
  • Binds by default to the lifecycle phase: package.

Required Parameters

Name Type Since Description
project MavenProject - The project whose project files to create.
User property is: project.
warSourceDirectory File - Single directory for extra files to include in the WAR.
webappDirectory File - The directory where the webapp is built.

Optional Parameters

Name Type Since Description
useShieldingClassLoader boolean - Use shielded classloading
User property is: maven.war.shieldingclassloader.
useShieldingRepository boolean - Move jars for shielded classloading
User property is: maven.war.shieldingrepository.
webXml String - The path to the web.xml file to use.
User property is: maven.war.webxml.

Parameter Details

project:

The project whose project files to create.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • User Property: project

useShieldingClassLoader:

Use shielded classloading
  • Type: boolean
  • Required: No
  • User Property: maven.war.shieldingclassloader

useShieldingRepository:

Move jars for shielded classloading
  • Type: boolean
  • Required: No
  • User Property: maven.war.shieldingrepository

warSourceDirectory:

Single directory for extra files to include in the WAR.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}/src/main/webapp

webXml:

The path to the web.xml file to use.
  • Type: java.lang.String
  • Required: No
  • User Property: maven.war.webxml

webappDirectory:

The directory where the webapp is built.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.directory}/${project.build.finalName}