org.codehaus.mojo.versions
Class UpdatePropertiesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
          extended by org.codehaus.mojo.versions.UpdatePropertiesMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class UpdatePropertiesMojo
extends AbstractVersionsUpdaterMojo

Sets properties to the latest versions of specific artifacts.

Since:
1.0
Author:
Stephen Connolly

Field Summary
protected  String excludeProperties
          A comma separated list of properties to not update.
protected  String includeProperties
          A comma separated list of properties to update.
protected  LinkItem[] linkItems
          The properties to update and the artifact coordinates that they are to be updated from.
 
Fields inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
allowSnapshots, artifactFactory, artifactMetadataSource, comparisonMethod, localRepository, projectBuilder, reactorProjects, remoteRepositories, resolver
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UpdatePropertiesMojo()
           
 
Method Summary
protected  void update(ModifiedPomXMLEventReader pom)
          Updates the pom.
 
Methods inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
execute, findLatestVersion, getProject, getPropertyValue, getVersionComparator, process, setProject, shouldApplyUpdate
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linkItems

protected LinkItem[] linkItems
The properties to update and the artifact coordinates that they are to be updated from.

Since:
1.0

includeProperties

protected String includeProperties
A comma separated list of properties to update.

Since:
1.0

excludeProperties

protected String excludeProperties
A comma separated list of properties to not update.

Since:
1.0
Constructor Detail

UpdatePropertiesMojo

public UpdatePropertiesMojo()
Method Detail

update

protected void update(ModifiedPomXMLEventReader pom)
               throws MojoExecutionException,
                      MojoFailureException,
                      javax.xml.stream.XMLStreamException
Description copied from class: AbstractVersionsUpdaterMojo
Updates the pom.

Specified by:
update in class AbstractVersionsUpdaterMojo
Parameters:
pom - the pom to update.
Throws:
MojoExecutionException - when things go wrong
MojoFailureException - when things go wrong in a very bad way
javax.xml.stream.XMLStreamException - when things go wrong with XML streaming
Since:
1.0
See Also:
AbstractVersionsUpdaterMojo.update(ModifiedPomXMLEventReader)


Copyright © 2008 Codehaus. All Rights Reserved.