Goals available for this plugin:
Goal | Description |
---|---|
spring:load | Load a Spring context XML file optionally filtering it using Maven
properties before doing so. If exportProperties is
true, Maven properties are exported to the file system prior to
loading and filtering the Spring context. The path to the exported
properties file is automatically added to the properties under the
key maven.spring.properties . This combination allows
the injection of Maven properties into a Spring context by setting
filterContext=true in the Maven pom and adding one
line to the Spring XML configuration file:<context:property-placeholder
location="${maven.spring.properties}" /> OR <util:properties id="mavenProperties"
location="${maven.spring.properties}" /> |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.6 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>org.kuali.maven.plugins</groupId> <artifactId>spring-maven-plugin</artifactId> <version>1.1.1-SNAPSHOT</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>org.kuali.maven.plugins</groupId> <artifactId>spring-maven-plugin</artifactId> <version>1.1.1-SNAPSHOT</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"