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
The maven archive configuration to use.
- Type: org.apache.maven.archiver.MavenArchiveConfiguration
- Required: No
The directory for the generated WAR.
- Type: java.lang.String
- Required: Yes
- User Property: project.build.directory
The project whose project files to create.
- Type: org.apache.maven.project.MavenProject
- Required: Yes
- User Property: project
Use shielded classloading
- Type: boolean
- Required: No
- User Property: maven.war.shieldingclassloader
Move jars for shielded classloading
- Type: boolean
- Required: No
- User Property: maven.war.shieldingrepository
The name of the generated war.
- Type: java.lang.String
- Required: Yes
- User Property: project.build.finalName
Single directory for extra files to include in the WAR.
- Type: java.io.File
- Required: Yes
- Expression: ${basedir}/src/main/webapp
The path to the web.xml file to use.
- Type: java.lang.String
- Required: No
- User Property: maven.war.webxml
The directory where the webapp is built.
- Type: java.io.File
- Required: Yes
- Expression: ${project.build.directory}/${project.build.finalName}