Class UpdatePropertiesMojoBase

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
UpdatePropertiesMojo, UpdatePropertyMojo

public abstract class UpdatePropertiesMojoBase extends AbstractVersionsDependencyUpdaterMojo
Common base class for UpdatePropertiesMojo and UpdatePropertyMojo
  • Field Details

    • autoLinkItems

      @Parameter(property="autoLinkItems", defaultValue="true") protected boolean autoLinkItems
      Whether properties linking versions should be auto-detected or not.
      Since:
      1.0-alpha-2
    • allowDowngrade

      @Parameter(property="allowDowngrade", defaultValue="false") 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].
      Since:
      3.0.0
    • allowMajorUpdates

      @Parameter(property="allowMajorUpdates", defaultValue="true") protected boolean allowMajorUpdates
      Whether to allow the major version number to be changed.
      Since:
      2.4
    • allowMinorUpdates

      @Parameter(property="allowMinorUpdates", defaultValue="true") protected boolean allowMinorUpdates

      Whether to allow the minor version number to be changed.

      Note: false also implies allowMajorUpdates false

      Since:
      2.4
    • allowIncrementalUpdates

      @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

      Since:
      2.4
    • includeParent

      @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.

      Since:
      2.14.0
  • Constructor Details

    • UpdatePropertiesMojoBase

      public UpdatePropertiesMojoBase(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.eclipse.aether.RepositorySystem repositorySystem, Map<String,org.apache.maven.wagon.Wagon> wagonMap, Map<String,ChangeRecorder> changeRecorders)
  • Method Details