spring:execute

Full name:

org.kuali.maven.plugins:spring-maven-plugin:1.0.1:execute

Description:

Given a Spring context containing a bean that implements org.kuali.common.util.execute.Executable load the context, extract the Executable bean and invoke its execute() method. If filterContext is true the context is filtered using Maven properties before it is loaded.

Attributes:

  • Requires a Maven project to be executed.

Required Parameters

Name Type Since Description
contextLocation String - Location of a Spring context XML file. This can be any URL Spring's Resource loading framework understands eg classpath:mycontext.xml
Default value is: classpath:${project.artifactId}-context.xml.
executableBean String - Spring managed bean that implements Executable
Default value is: executable.

Optional Parameters

Name Type Since Description
encoding String - Character encoding for the context XML file
Default value is: ${project.build.sourceEncoding}.
filterContext boolean - If true contextLocation is filtered before being loaded
Default value is: false.
filterExcludes List - List of Maven properties to exclude from the filtering process.
filterIncludes List - List of Maven properties to include in the filtering process when filterContext is true. If nothing is provided here, all maven properties are used.
workingDir File - Working directory for the plugin.
Default value is: ${project.build.directory}/spring.

Parameter Details

contextLocation:

Location of a Spring context XML file. This can be any URL Spring's Resource loading framework understands eg classpath:mycontext.xml
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${spring.contextLocation}
  • Default: classpath:${project.artifactId}-context.xml

encoding:

Character encoding for the context XML file
  • Type: java.lang.String
  • Required: No
  • Expression: ${spring.encoding}
  • Default: ${project.build.sourceEncoding}

executableBean:

Spring managed bean that implements Executable
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${spring.executableBean}
  • Default: executable

filterContext:

If true contextLocation is filtered before being loaded
  • Type: boolean
  • Required: No
  • Expression: ${spring.filterContext}
  • Default: false

filterExcludes:

List of Maven properties to exclude from the filtering process.
  • Type: java.util.List
  • Required: No

filterIncludes:

List of Maven properties to include in the filtering process when filterContext is true. If nothing is provided here, all maven properties are used.
  • Type: java.util.List
  • Required: No

workingDir:

Working directory for the plugin.
  • Type: java.io.File
  • Required: No
  • Expression: ${spring.workingDir}
  • Default: ${project.build.directory}/spring