Apache » Cocoon »

  Cocoon Maven Plugin
      1.0.2
   homepage

Cocoon Maven Plugin 1.0.2

cocoon:deploy-war

Full name:

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

Description:

Create a packaged Cocoon web application (.war file) based on a block deployment descriptor.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: package.

Required Parameters

Name Type Since Description
outputDirectory String - The directory for the generated WAR.
User property is: project.build.directory.
project MavenProject - The project whose project files to create.
User property is: project.
warName String - The name of the generated war.
User property is: project.build.finalName.
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
archive MavenArchiveConfiguration - The maven archive configuration to use.
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

archive:

The maven archive configuration to use.
  • Type: org.apache.maven.archiver.MavenArchiveConfiguration
  • Required: No

outputDirectory:

The directory for the generated WAR.
  • Type: java.lang.String
  • Required: Yes
  • User Property: project.build.directory

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

warName:

The name of the generated war.
  • Type: java.lang.String
  • Required: Yes
  • User Property: project.build.finalName

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}