spring:load

Full name:

org.kuali.maven.plugins:spring-maven-plugin:1.0.3-SNAPSHOT:load

Description:

Given a contextLocation load a Spring context. 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.

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.
properties Properties - Additional properties to use when filtering the Spring context
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}

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

properties:

Additional properties to use when filtering the Spring context
  • Type: java.util.Properties
  • Required: No

workingDir:

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