org.codehaus.mojo.versions
Class DisplayPropertyUpdatesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.DisplayPropertyUpdatesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class DisplayPropertyUpdatesMojo
- extends AbstractVersionsUpdaterMojo
Sets properties to the latest versions of specific artifacts.
- Since:
- 1.0-beta-1
- Author:
- Stephen Connolly
Fields inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo |
allowSnapshots, artifactFactory, artifactMetadataSource, localRepository, pathTranslator, projectBuilder, reactorProjects, remoteArtifactRepositories, remotePluginRepositories, resolver, session |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
DisplayPropertyUpdatesMojo
public DisplayPropertyUpdatesMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Description copied from class:
AbstractVersionsUpdaterMojo
-
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Overrides:
execute
in class AbstractVersionsUpdaterMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
update
protected void update(ModifiedPomXMLEventReader pom)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
javax.xml.stream.XMLStreamException,
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
- Description copied from class:
AbstractVersionsUpdaterMojo
- Updates the pom.
- Specified by:
update
in class AbstractVersionsUpdaterMojo
- Parameters:
pom
- The pom to update.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- If things go wrong.
org.apache.maven.plugin.MojoFailureException
- If things go wrong.
javax.xml.stream.XMLStreamException
- If things go wrong.
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
Copyright © 2008-2011 Codehaus. All Rights Reserved.