public abstract class UpdatePropertiesMojoBase extends AbstractVersionsDependencyUpdaterMojo
UpdatePropertiesMojo
and UpdatePropertyMojo| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowDowngrade
If a property points to a version like
1.2.3 and your repository contains versions like
1.2.3 and 1.1.0 without settings this to true the property will never
being changed back to 1.1.0 by using -DnewVersion=[1.1.0]. |
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.
|
protected boolean |
autoLinkItems
Whether properties linking versions should be auto-detected or not.
|
protected boolean |
includeParent
Whether to include parent POMs in the search.
|
SNAPSHOT_REGEXaetherRepositorySystem, allowSnapshots, ignoredVersions, project, reactorProjects, repositorySystem, ruleSet, session, wagonMap| Constructor and Description |
|---|
UpdatePropertiesMojoBase(org.apache.maven.repository.RepositorySystem repositorySystem,
org.eclipse.aether.RepositorySystem aetherRepositorySystem,
Map<String,org.apache.maven.wagon.Wagon> wagonMap,
Map<String,org.codehaus.mojo.versions.api.recording.ChangeRecorder> changeRecorders) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
update(ModifiedPomXMLEventReader pom,
Map<Property,PropertyVersions> propertyVersions) |
findArtifact, getParentDependency, hasIncludes, isExcludeReactor, isHandledByProperty, isIncluded, isProcessingDependencies, isProcessingDependencyManagement, isProcessingParent, isProducedByReactor, separatePatterns, toArtifact, toArtifact, toString, toString, updateDependencyVersionexecute, findLatestVersion, getChangeRecorder, getHelper, getProject, getPropertyValue, getVersion, newModifiedPomXER, process, saveChangeRecorderResults, setProject, shouldApplyUpdate, shouldApplyUpdate, update, updatePropertyToNewestVersion, validateInput, writeFile@Parameter(property="autoLinkItems",
defaultValue="true")
protected boolean autoLinkItems
@Parameter(property="allowDowngrade",
defaultValue="false")
protected boolean allowDowngrade
1.2.3 and your repository contains versions like
1.2.3 and 1.1.0 without settings this to true the property will never
being changed back to 1.1.0 by using -DnewVersion=[1.1.0].@Parameter(property="allowMajorUpdates",
defaultValue="true")
protected boolean allowMajorUpdates
@Parameter(property="allowMinorUpdates",
defaultValue="true")
protected boolean allowMinorUpdates
Whether to allow the minor version number to be changed.
Note: false also implies allowMajorUpdates false
@Parameter(property="allowIncrementalUpdates",
defaultValue="true")
protected boolean allowIncrementalUpdates
Whether to allow the incremental version number to be changed.
Note: false also implies allowMajorUpdates
and allowMinorUpdates false
@Parameter(property="includeParent",
defaultValue="true")
protected boolean includeParent
Whether to include parent POMs in the search. Default: true
Setting this to false can speed up execution, but will not resolve
property-bound dependencies, defined in parent POMs.
public UpdatePropertiesMojoBase(org.apache.maven.repository.RepositorySystem repositorySystem,
org.eclipse.aether.RepositorySystem aetherRepositorySystem,
Map<String,org.apache.maven.wagon.Wagon> wagonMap,
Map<String,org.codehaus.mojo.versions.api.recording.ChangeRecorder> changeRecorders)
protected void update(ModifiedPomXMLEventReader pom, Map<Property,PropertyVersions> propertyVersions) throws XMLStreamException
XMLStreamExceptionCopyright © 2008–2022 MojoHaus. All rights reserved.