yuicompressor:jslint

Full name:

net.alchim31.maven:yuicompressor-maven-plugin:1.3.0:jslint

Description:

Check JS files with jslint.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: process-resources.

Optional Parameters

Name Type Since Description
excludeResources boolean - Excludes files from resources directories.
Default value is: false.
excludeWarSourceDirectory boolean - Excludes files from webapp directory
excludes List - list of additional excludes
failOnWarning boolean - define if plugin must stop/fail on warnings.
Default value is: false.
includes List - list of additional includes
jswarn boolean - [js only] Display possible errors in the code
Default value is: true.
outputDirectory File - The output directory into which to copy the resources.
resources List - The list of resources we want to transfer.
skip boolean - Whether to skip execution.
Default value is: false.
sourceDirectory File - Javascript source directory. (result will be put to outputDirectory). This allow project with "src/main/js" structure.
warSourceDirectory File - Single directory for extra files to include in the WAR.
webappDirectory File - The directory where the webapp is built.

Parameter Details

excludeResources:

Excludes files from resources directories.
  • Type: boolean
  • Required: No
  • Default: false

excludeWarSourceDirectory:

Excludes files from webapp directory
  • Type: boolean
  • Required: No

excludes:

list of additional excludes
  • Type: java.util.List
  • Required: No

failOnWarning:

define if plugin must stop/fail on warnings.
  • Type: boolean
  • Required: No
  • Expression: ${maven.yuicompressor.failOnWarning}
  • Default: false

includes:

list of additional includes
  • Type: java.util.List
  • Required: No

jswarn:

[js only] Display possible errors in the code
  • Type: boolean
  • Required: No
  • Expression: ${maven.yuicompressor.jswarn}
  • Default: true

outputDirectory:

The output directory into which to copy the resources.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.outputDirectory}

resources:

The list of resources we want to transfer.
  • Type: java.util.List
  • Required: No
  • Expression: ${project.resources}

skip:

Whether to skip execution.
  • Type: boolean
  • Required: No
  • Expression: ${maven.yuicompressor.skip}
  • Default: false

sourceDirectory:

Javascript source directory. (result will be put to outputDirectory). This allow project with "src/main/js" structure.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.sourceDirectory}/../js

warSourceDirectory:

Single directory for extra files to include in the WAR.
  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}/src/main/webapp

webappDirectory:

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