Fork me on GitHub

groovy:execute

Full name:

org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute

Description:

Execute a Groovy script.
See usage for more details.

Attributes:

  • Requires dependency resolution of artifacts in scope: test.
  • The goal is thread-safe and supports parallel builds.
  • Since version: 2.0.

Required Parameters

Name Type Since Description
source String 2.0 Source of the script to execute.
Allowed content flavors:
  • File
  • URL
  • Inline script

When using inline scripts, be aware that Maven will interpolate this value early when configuring execution. This may cause problems if the script is expecting groovy.lang.GString evaluation instead.
Scripts which make use of GString expressions should seriously consider using a File or URL source instead.
User property is: source.

Optional Parameters

Name Type Since Description
classpathScope ClasspathScope 2.0 Include additional classpath from project artifacts in given scope.
Scope can be one of:
  • none
  • provided
  • compile
  • runtime
  • test

Default value is: none.
User property is: scope.
defaults Map 2.0 Execution property defaults.
Any property defined _elsewhere_ (project, user, system, etc) will take precedence over default values.
properties Map 2.0 Execution property overrides.
Any property defined here will take precedence over any other definition.
scriptpath List 2.0 Path to search for imported scripts.
Supports -Dscriptpath=PATH,PATH property syntax.
User property is: scriptpath.

Parameter Details

classpathScope:

Include additional classpath from project artifacts in given scope.
Scope can be one of:
  • none
  • provided
  • compile
  • runtime
  • test
  • Type: org.codehaus.gmaven.plugin.ClasspathScope
  • Since: 2.0
  • Required: No
  • User Property: scope
  • Default: none

defaults:

Execution property defaults.
Any property defined _elsewhere_ (project, user, system, etc) will take precedence over default values.
  • Type: java.util.Map
  • Since: 2.0
  • Required: No

properties:

Execution property overrides.
Any property defined here will take precedence over any other definition.
  • Type: java.util.Map
  • Since: 2.0
  • Required: No

scriptpath:

Path to search for imported scripts.
Supports -Dscriptpath=PATH,PATH property syntax.
  • Type: java.util.List
  • Since: 2.0
  • Required: No
  • User Property: scriptpath

source:

Source of the script to execute.
Allowed content flavors:
  • File
  • URL
  • Inline script

When using inline scripts, be aware that Maven will interpolate this value early when configuring execution. This may cause problems if the script is expecting groovy.lang.GString evaluation instead.
Scripts which make use of GString expressions should seriously consider using a File or URL source instead.
  • Type: java.lang.String
  • Since: 2.0
  • Required: Yes
  • User Property: source