javascript:war-package

Full name:

org.codehaus.mojo.javascript:javascript-maven-plugin:1.1-softec:war-package

Description:

Goal that prepares scripts for packaging as a web application.

Attributes:

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

Required Parameters

Name Type Since Description
webappDirectory File - The directory where the webapp is built.

Optional Parameters

Name Type Since Description
depsDirectory File - The folder where javascript dependencies are extracted and taken during assembling
Default value is: ${project.build.directory}/javascript-dependency.
descriptor File - Descriptor for the strategy to assemble individual scripts sources into destination.
Default value is: ${basedir}/src/assembler/${project.artifactId}.xml.
descriptorFormat String - Descriptor file format (default or jsbuilder)
excludes String[] - Exclusion pattern.
includes String[] - Inclusion pattern.
libsDirectory String - The folder for javascripts dependencies
Default value is: lib.
outputDirectory File - The output directory of the assembled js file.
Default value is: ${project.build.outputDirectory}.
scriptsDirectory String - The folder in webapp for javascripts
Default value is: scripts.
sourceDirectory File - Location of the source files.
Default value is: ${basedir}/src/main/javascript.
useArtifactId boolean - Use the artifactId as folder

Parameter Details

depsDirectory:

The folder where javascript dependencies are extracted and taken during assembling
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/javascript-dependency

descriptor:

Descriptor for the strategy to assemble individual scripts sources into destination.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/assembler/${project.artifactId}.xml

descriptorFormat:

Descriptor file format (default or jsbuilder)
  • Type: java.lang.String
  • Required: No

excludes:

Exclusion pattern.
  • Type: java.lang.String[]
  • Required: No

includes:

Inclusion pattern.
  • Type: java.lang.String[]
  • Required: No

libsDirectory:

The folder for javascripts dependencies
  • Type: java.lang.String
  • Required: No
  • Expression: ${scripts}
  • Default: lib

outputDirectory:

The output directory of the assembled js file.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

scriptsDirectory:

The folder in webapp for javascripts
  • Type: java.lang.String
  • Required: No
  • Expression: ${scripts}
  • Default: scripts

sourceDirectory:

Location of the source files.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/main/javascript

useArtifactId:

Use the artifactId as folder
  • Type: boolean
  • Required: No

webappDirectory:

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