@Mojo(name="update-property",
requiresProject=true,
requiresDirectInvocation=true,
threadSafe=true)
public class UpdatePropertyMojo
extends AbstractVersionsUpdaterMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowIncrementalUpdates
Whether to allow the incremental version number to be changed.
|
protected boolean |
allowMajorUpdates
Whether to allow the major version number to be changed.
|
protected boolean |
allowMinorUpdates
Whether to allow the minor version number to be changed.
|
allowSnapshots, artifactFactory, artifactMetadataSource, artifactResolver, localRepository, pathTranslator, project, projectBuilder, reactorProjects, remoteArtifactRepositories, remotePluginRepositories, resolver, session, settings| Constructor and Description |
|---|
UpdatePropertyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
update(ModifiedPomXMLEventReader pom)
Updates the pom.
|
determineUnchangedSegment, execute, findLatestVersion, getHelper, getProject, getPropertyValue, getVersion, newModifiedPomXER, process, setProject, shouldApplyUpdate, updatePropertyToNewestVersion, updatePropertyToNewestVersion, writeFile@Parameter(property="allowMajorUpdates",
defaultValue="true")
protected boolean allowMajorUpdates
@Parameter(property="allowMinorUpdates",
defaultValue="true")
protected boolean allowMinorUpdates
@Parameter(property="allowIncrementalUpdates",
defaultValue="true")
protected boolean allowIncrementalUpdates
protected void update(ModifiedPomXMLEventReader pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, XMLStreamException
AbstractVersionsUpdaterMojoupdate in class AbstractVersionsUpdaterMojopom - the pom to update.org.apache.maven.plugin.MojoExecutionException - when things go wrongorg.apache.maven.plugin.MojoFailureException - when things go wrong in a very bad wayXMLStreamException - when things go wrong with XML streamingAbstractVersionsUpdaterMojo.update(ModifiedPomXMLEventReader)Copyright © 2008–2018 MojoHaus. All rights reserved.