script:groovy

Executes a Groovy script.

Mojo Attributes:

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

Required Parameters

Name Type Description
source CodeSource The source of the script to execute.

Optional Parameters

Name Type Description
classpath ArtifactItem[] Additional artifacts to add to the scripts classpath.
defaults Map A set of default project properties, which the values will be used only if the project or system does not override.
properties Map A set of additional project properties.
scriptpath File[] Path to search for imported scripts.

Parameter Details

classpath

Additional artifacts to add to the scripts classpath.

  • Type: org.apache.geronimo.genesis.util.ArtifactItem[]
  • Required: No

defaults A set of default project properties, which the values will be used only if the project or system does not override.
  • Type: java.util.Map
  • Required: No

properties A set of additional project properties.
  • Type: java.util.Map
  • Required: No

scriptpath Path to search for imported scripts.
  • Type: java.io.File[]
  • Required: No

source The source of the script to execute.
  • Type: org.apache.geronimo.genesis.plugins.script.CodeSource
  • Required: Yes