spring:load

Full name:

org.kuali.maven.plugins:spring-maven-plugin:3.0.1:load

Description:

Load a Spring context from an annotated class

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Invokes the execution of this plugin's goal load prior to executing itself.

Optional Parameters

Name Type Since Description
activeProfileExcludes String - Comma separated list of active profiles to exclude. By default, all active Maven profiles plus any profiles from activeProfiles are activated.
Default value is: NONE.
User property is: spring.activeProfileExcludes.
activeProfileIncludes String - Comma separated list of active profiles to include. By default, all active Maven profiles plus any profiles from activeProfiles are activated.
User property is: spring.activeProfileIncludes.
activeProfiles String - Comma separated list of profiles to activate. By default the profile maven is activated.
Default value is: maven.
User property is: spring.profiles.active.
addPropertySources boolean - If true, any PropertySource's supplied to the mojo are added to the configured Spring environment.
Default value is: true.
User property is: spring.addPropertySources.
annotatedClass String - The annotated class containing the Spring configuration. If not supplied, a class based on ${project.groupId} + ${project.artifactId} is used. Given a groupId of org.kuali.rice and an artifactId of rice-sampleapp, this mojo attempts to use org.kuali.rice.spring.RiceSampleappConfig
User property is: spring.annotatedClass.
annotatedClasses List - Additional annotated classes containing Spring configuration.
User property is: spring.annotatedClasses.
defaultProfileExcludes String - Comma separated list of default profiles to exclude. Spring uses the profile "default" when no other active or default profiles are specified.
Default value is: NONE.
User property is: spring.defaultProfileExcludes.
defaultProfileIncludes String - Comma separated list of default profiles to include. Spring uses the profile default when no other active or default profiles are specified.
User property is: spring.defaultProfileIncludes.
defaultProfiles String - Comma separated list of default profiles. Spring always uses a single profile named default if no default profiles are provided.
User property is: spring.profiles.default.
forceMojoExecution boolean - If true, the mojo will always execute
Default value is: false.
User property is: spring.forceMojoExecution.
injectMavenMojo boolean - If true, this Maven mojo object is injected into the context under the name mavenMojo
Default value is: false.
User property is: spring.injectMavenMojo.
injectMavenProject boolean - If true, the Maven project object is injected into the context under the name mavenProject
Default value is: false.
User property is: spring.injectMavenProject.
injectMavenProperties boolean - If true, Maven properties are injected into the context as a java.util.Properties bean under the name mavenProperties
Default value is: true.
User property is: spring.injectMavenProperties.
mojoExecutableConfig String - The Spring config class execution is delegated to. This defaults to org.kuali.maven.plugins.spring.config.MojoExecutableConfig
User property is: spring.mojoExecutableConfig.
properties Properties - Extra properties supplied directly to the mojo
User property is: spring.properties.
propertySourcesConfig String - The annotated class containing PropertySource definitions. By default, this gets set to org.kuali.maven.plugins.spring.config.PropertySourcesConfig which registers a single PropertySource object backed by the full set of Maven properties.
User property is: spring.propertySourcesConfig.
removeExistingPropertySources boolean - If true, any existing PropertySource's are removed before adding property sources supplied to the plugin
Default value is: false.
User property is: spring.removeExistingPropertySources.
skip boolean - If true, the mojo execution will always be skipped (unless forceMojoExecution is true)
Default value is: false.
User property is: spring.skip.
springService String - The implementation of SpringService to use. If not supplied this defaults to org.kuali.common.util.service.DefaultSpringService
User property is: spring.springService.

Parameter Details

activeProfileExcludes:

Comma separated list of active profiles to exclude. By default, all active Maven profiles plus any profiles from activeProfiles are activated.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.activeProfileExcludes
  • Default: NONE

activeProfileIncludes:

Comma separated list of active profiles to include. By default, all active Maven profiles plus any profiles from activeProfiles are activated.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.activeProfileIncludes

activeProfiles:

Comma separated list of profiles to activate. By default the profile maven is activated.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.profiles.active
  • Default: maven

addPropertySources:

If true, any PropertySource's supplied to the mojo are added to the configured Spring environment.
  • Type: boolean
  • Required: No
  • User Property: spring.addPropertySources
  • Default: true

annotatedClass:

The annotated class containing the Spring configuration. If not supplied, a class based on ${project.groupId} + ${project.artifactId} is used. Given a groupId of org.kuali.rice and an artifactId of rice-sampleapp, this mojo attempts to use org.kuali.rice.spring.RiceSampleappConfig
  • Type: java.lang.String
  • Required: No
  • User Property: spring.annotatedClass

annotatedClasses:

Additional annotated classes containing Spring configuration.
  • Type: java.util.List
  • Required: No
  • User Property: spring.annotatedClasses

defaultProfileExcludes:

Comma separated list of default profiles to exclude. Spring uses the profile "default" when no other active or default profiles are specified.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.defaultProfileExcludes
  • Default: NONE

defaultProfileIncludes:

Comma separated list of default profiles to include. Spring uses the profile default when no other active or default profiles are specified.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.defaultProfileIncludes

defaultProfiles:

Comma separated list of default profiles. Spring always uses a single profile named default if no default profiles are provided.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.profiles.default

forceMojoExecution:

If true, the mojo will always execute
  • Type: boolean
  • Required: No
  • User Property: spring.forceMojoExecution
  • Default: false

injectMavenMojo:

If true, this Maven mojo object is injected into the context under the name mavenMojo
  • Type: boolean
  • Required: No
  • User Property: spring.injectMavenMojo
  • Default: false

injectMavenProject:

If true, the Maven project object is injected into the context under the name mavenProject
  • Type: boolean
  • Required: No
  • User Property: spring.injectMavenProject
  • Default: false

injectMavenProperties:

If true, Maven properties are injected into the context as a java.util.Properties bean under the name mavenProperties
  • Type: boolean
  • Required: No
  • User Property: spring.injectMavenProperties
  • Default: true

mojoExecutableConfig:

The Spring config class execution is delegated to. This defaults to org.kuali.maven.plugins.spring.config.MojoExecutableConfig
  • Type: java.lang.String
  • Required: No
  • User Property: spring.mojoExecutableConfig

properties:

Extra properties supplied directly to the mojo
  • Type: java.util.Properties
  • Required: No
  • User Property: spring.properties

propertySourcesConfig:

The annotated class containing PropertySource definitions. By default, this gets set to org.kuali.maven.plugins.spring.config.PropertySourcesConfig which registers a single PropertySource object backed by the full set of Maven properties.
  • Type: java.lang.String
  • Required: No
  • User Property: spring.propertySourcesConfig

removeExistingPropertySources:

If true, any existing PropertySource's are removed before adding property sources supplied to the plugin
  • Type: boolean
  • Required: No
  • User Property: spring.removeExistingPropertySources
  • Default: false

skip:

If true, the mojo execution will always be skipped (unless forceMojoExecution is true)
  • Type: boolean
  • Required: No
  • User Property: spring.skip
  • Default: false

springService:

The implementation of SpringService to use. If not supplied this defaults to org.kuali.common.util.service.DefaultSpringService
  • Type: java.lang.String
  • Required: No
  • User Property: spring.springService