tuscany-war:tuscany-war

Build the tuscany war file by adding the tuscany dependencies. Performs the following tasks.

  • Adds the boot dependencies transitively to WEB-INF/tuscany/boot
  • By default boot libraries are transitively resolved from webapp-host
  • The version of boot libraries can be specified using configuration/runTimeVersion element
  • Boot libraries can be overridden using the configuration/bootLibs element in the plugin
  • Adds the extension artifacts specified using configuration/extensions to WEB-INF/tuscany/extensions
  • If configuration/loadExtensionsDependency is set to true extension dependencies are transitivel loaded
  • Extension dependencies are loaded into WEB-INF/tuscany/repository directory in a Maven repo format
  • Extension dependency metadata is written to WEB-INF/tuscany/repository/dependency.metadata file

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Automatically executes within the lifecycle phase: package

Required Parameters

Name Type Description
outputDirectory String The directory for the generated WAR.
warName String The name of the generated WAR.

Optional Parameters

Name Type Description
bootLibs Dependency[] The directory for the generated WAR.
dependencies Dependency[] The directory for the generated WAR.
extensions Dependency[] The directory for the generated WAR.
loadExtensionDependencies boolean A flag to indicate whether extension dependencies should be resolved transitively.
metadataSource ArtifactMetadataSource Artifact metadata source.
runTimeVersion String The default version of boot dependany jar files

Parameter Details

bootLibs

The directory for the generated WAR.

  • Type: org.apache.tuscany.plugin.war.Dependency[]
  • Required: No

dependencies

The directory for the generated WAR.

  • Type: org.apache.tuscany.plugin.war.Dependency[]
  • Required: No

extensions

The directory for the generated WAR.

  • Type: org.apache.tuscany.plugin.war.Dependency[]
  • Required: No

loadExtensionDependencies

A flag to indicate whether extension dependencies should be resolved transitively.

  • Type: boolean
  • Required: No

metadataSource

Artifact metadata source.

  • Type: org.apache.maven.artifact.metadata.ArtifactMetadataSource
  • Required: No

outputDirectory

The directory for the generated WAR.

  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.directory}

runTimeVersion

The default version of boot dependany jar files

  • Type: java.lang.String
  • Required: No

warName

The name of the generated WAR.

  • Type: java.lang.String
  • Required: Yes
  • Expression: ${project.build.finalName}