javascript:compile

Full name:

org.codehaus.mojo.javascript:javascript-maven-plugin:1.1-softec:compile

Description:

Goal which assemble javascript sources into the packaging directory. An optional assembler descriptor can be set to configure scripts to be merged. Other scripts are simply copied to the output directory.

Attributes:

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

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.
outputDirectory File - The output directory of the assembled js file.
Default value is: ${project.build.outputDirectory}.
sourceDirectory File - Location of the source files.
Default value is: ${basedir}/src/main/javascript.
useArtifactId boolean - For dependencies, if true, create a folder named by the artifactId while unpacking

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

outputDirectory:

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

sourceDirectory:

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

useArtifactId:

For dependencies, if true, create a folder named by the artifactId while unpacking
  • Type: boolean
  • Required: No