@Mojo(name="use-dep-version",
requiresProject=true,
requiresDirectInvocation=true,
threadSafe=true)
public class UseDepVersionMojo
extends AbstractVersionsDependencyUpdaterMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
depVersion
The exact version to be applied for the included dependencies
|
protected boolean |
forceVersion
If set to true, will use whatever version is supplied without attempting to validate that such a version is
obtainable from the repository chain.
|
allowSnapshots, artifactFactory, artifactMetadataSource, artifactResolver, localRepository, pathTranslator, project, projectBuilder, reactorProjects, remoteArtifactRepositories, remotePluginRepositories, resolver, session, settings| Constructor and Description |
|---|
UseDepVersionMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
update(ModifiedPomXMLEventReader pom)
Updates the pom.
|
findArtifact, hasIncludes, isExcludeReactor, isIncluded, isProcessingDependencies, isProcessingDependencyManagement, isProcessingParent, isProducedByReactor, separatePatterns, toArtifact, toArtifact, toString, toStringdetermineUnchangedSegment, execute, findLatestVersion, getHelper, getProject, getPropertyValue, getVersion, newModifiedPomXER, process, setProject, shouldApplyUpdate, updatePropertyToNewestVersion, updatePropertyToNewestVersion, writeFile@Parameter(property="depVersion",
required=true)
protected String depVersion
@Parameter(property="forceVersion",
defaultValue="false")
protected boolean forceVersion
protected void update(ModifiedPomXMLEventReader pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, XMLStreamException, org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
AbstractVersionsUpdaterMojoupdate in class AbstractVersionsUpdaterMojopom - The pom to update.org.apache.maven.plugin.MojoExecutionException - If things go wrong.org.apache.maven.plugin.MojoFailureException - If things go wrong.XMLStreamException - If things go wrong.org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalExceptionCopyright © 2008–2018 MojoHaus. All rights reserved.