Author: dkulp Date: Mon Jul 8 15:12:50 2013 New Revision: 1500793 URL: http://svn.apache.org/r1500793 Log: The properties can contain objects, not just strings. Add the ResouceManager in to the properties.
Modified: maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java Modified: maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java?rev=1500793&r1=1500792&r2=1500793&view=diff ============================================================================== --- maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java (original) +++ maven/plugins/trunk/maven-remote-resources-plugin/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.java Mon Jul 8 15:12:50 2013 @@ -275,13 +275,14 @@ public class ProcessRemoteResourcesMojo * project - the current MavenProject <br/> * projects - the list of dependency projects<br/> * projectTimespan - the timespan of the current project (requires inceptionYear in pom)<br/> + * locator - the ResourceManager that can be used to retrieve additional resources<br/> * <p/> * See <a href="http://maven.apache.org/ref/current/maven-project/apidocs/org/apache/maven/project/MavenProject.html"> * the javadoc for MavenProject</a> for information about the properties on the MavenProject. */ @Parameter - private Map<String, String> properties = new HashMap<String, String>(); - + private Map<String, Object> properties = new HashMap<String, Object>(); + /** * Whether to include properties defined in the project when filtering resources. * @@ -943,8 +944,8 @@ public class ProcessRemoteResourcesMojo List<MavenProject> projects = getProjects(); context.put( "projects", projects ); context.put( "projectsSortedByOrganization", getProjectsSortedByOrganization( projects ) ); - context.put( "presentYear", year ); + context.put( "locator", locator); if ( inceptionYear.equals( year ) ) {