|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.AbstractVersionsDependencyUpdaterMojo
public abstract class AbstractVersionsDependencyUpdaterMojo
Base class for a mojo that updates dependency versions.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo |
|---|
allowSnapshots, artifactFactory, artifactMetadataSource, artifactResolver, localRepository, pathTranslator, projectBuilder, reactorProjects, remoteArtifactRepositories, remotePluginRepositories, resolver, session, settings |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractVersionsDependencyUpdaterMojo()
|
|
| Method Summary | |
|---|---|
protected org.apache.maven.artifact.Artifact |
findArtifact(org.apache.maven.model.Dependency dependency)
Try to find the dependency artifact that matches the given dependency. |
boolean |
isExcludeReactor()
Should the artifacts produced in the current reactor be excluded from processing. |
protected boolean |
isIncluded(org.apache.maven.artifact.Artifact artifact)
Determine if the artifact is included in the list of artifacts to be processed. |
boolean |
isProcessingDependencies()
Should the project/dependencies section of the pom be processed. |
boolean |
isProcessingDependencyManagement()
Should the project/dependencyManagement section of the pom be processed. |
protected boolean |
isProducedByReactor(org.apache.maven.model.Dependency dependency)
Returns true if the dependency is produced by the current reactor. |
protected List |
separatePatterns(String includeString)
To handle multiple includes with version range like "group:artifact:jar:[1.0.0,2.2)", we have to use a parsing a little bit more complex than split(). |
protected org.apache.maven.artifact.Artifact |
toArtifact(org.apache.maven.model.Dependency dependency)
Try to find the dependency artifact that matches the given dependency. |
protected String |
toString(org.apache.maven.model.Dependency d)
|
| Methods inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo |
|---|
determineUnchangedSegment, execute, findLatestVersion, getHelper, getProject, getPropertyValue, newModifiedPomXER, process, setProject, shouldApplyUpdate, update, updatePropertyToNewestVersion, writeFile |
| 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 |
| Constructor Detail |
|---|
public AbstractVersionsDependencyUpdaterMojo()
| Method Detail |
|---|
public boolean isProcessingDependencies()
true if the project/dependencies section of the pom should be processed.- Since:
- 1.0-alpha-3
public boolean isProcessingDependencyManagement()
true if the project/dependencyManagement section of the pom should be processed.- Since:
- 1.0-alpha-3
public boolean isExcludeReactor()
true if the artifacts produced in the current reactor should be excluded from processing.- Since:
- 1.0-alpha-3
protected org.apache.maven.artifact.Artifact findArtifact(org.apache.maven.model.Dependency dependency)
dependency -
protected org.apache.maven.artifact.Artifact toArtifact(org.apache.maven.model.Dependency dependency)
throws org.apache.maven.plugin.MojoExecutionException
dependency -
org.apache.maven.plugin.MojoExecutionExceptionprotected String toString(org.apache.maven.model.Dependency d)
protected boolean isProducedByReactor(org.apache.maven.model.Dependency dependency)
true if the dependency is produced by the current reactor.
dependency - the dependency to heck.
true if the dependency is produced by the current reactor.protected boolean isIncluded(org.apache.maven.artifact.Artifact artifact)
artifact - The artifact we want to check.
protected List separatePatterns(String includeString)
includeString - the string to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||