javascript:inplace

Goal that copies javascript dependencies to the web application script folder, inside the webapp source directory. This allows to prepare the webapp for running on a lightweight servlet container that does not requires packaging (when using the jetty:run goal).

Mojo Attributes :

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: runtime

Required Parameters

Name Type Description
warSourceDirectory File Single directory for extra files to include in the WAR.

Optional Parameters

Name Type Description
javascriptArtifactManager JavascriptArtifactManager No description.
libsDirectory String The folder for javascripts dependencies Default value is lib.
scriptsDirectory String The folder in webapp for javascripts Default value is scripts/libs.
useArtifactId boolean Use the artifactId as folder

Parameter Details

javascriptArtifactManager

No Description.

  • Type : org.codehaus.mojo.javascript.archive.JavascriptArtifactManager
  • Required : No

libsDirectory

The folder for javascripts dependencies

  • Type : java.lang.String
  • Required : No
  • Expression : ${scripts}
  • Default : lib

scriptsDirectory

The folder in webapp for javascripts

  • Type : java.lang.String
  • Required : No
  • Expression : ${scripts}
  • Default : scripts/libs

useArtifactId

Use the artifactId as folder

  • Type : boolean
  • Required : No

warSourceDirectory

Single directory for extra files to include in the WAR.

  • Type : java.io.File
  • Required : Yes
  • Expression : ${basedir}/src/main/webapp