org.codehaus.mojo.versions
Class ResolveRangesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.AbstractVersionsDependencyUpdaterMojo
org.codehaus.mojo.versions.ResolveRangesMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class ResolveRangesMojo
- extends AbstractVersionsDependencyUpdaterMojo
Attempts to resolve dependency version ranges to the specific version being used in the build. For example a version
range of "[1.0, 1.2)" would be resolved to the specific version currently in use "1.1".
- Since:
- 1.0-alpha-3
- Author:
- Paul Gier
- Is defined by the goal name:
- resolve-ranges
- Requires the dependencies in this specified scope:
- test
- Requires a direct invocation by the user:
- true
- Requires a Maven project to run:
- true
| Fields inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo |
allowSnapshots, artifactFactory, artifactMetadataSource, comparisonMethod, localRepository, pathTranslator, projectBuilder, reactorProjects, remoteArtifactRepositories, remotePluginRepositories, resolver, session |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo |
execute, findLatestVersion, getExpressionEvaluator, getHelper, getProject, getPropertyValue, getVersionComparator, newModifiedPomXER, process, readFile, setProject, shouldApplyUpdate, writeFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matchRangeRegex
public final Pattern matchRangeRegex
- Pattern to match a version range. For example 1.0-20090128.202731-1
ResolveRangesMojo
public ResolveRangesMojo()
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- See Also:
AbstractVersionsUpdaterMojo.update(ModifiedPomXMLEventReader)
Copyright © 2008-2009 Codehaus. All Rights Reserved.