Class UpdateParentMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.UpdateParentMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="update-parent", threadSafe=true) public class UpdateParentMojo extends AbstractVersionsUpdaterMojo
Sets the parent version to the latest parent version.
Since:
1.0-alpha-1
Author:
Stephen Connolly
  • Field Details

    • parentVersion

      @Parameter(property="parentVersion") protected String parentVersion

      If skipResolution is not set, specifies the bottom version considered for target version resolution. If it is a version range, the resolved version will be restricted by that range.

      If skipResolution is true, will specify the target version to which the parent artifact will be updated.

      Since:
      1.0-alpha-1
    • forceUpdate

      @Parameter(property="forceUpdate", defaultValue="false") protected boolean forceUpdate
      to update parent version by force when it is RELEASE or LATEST
      Since:
      2.9
    • skipResolution

      @Parameter(property="skipResolution", defaultValue="false") protected boolean skipResolution
      Skips version resolution, only valid if parentVersion is set. Will effectively set the new parent version to the one from parentVersion
      Since:
      2.13.0
    • allowDowngrade

      @Parameter(property="allowDowngrade", defaultValue="false") protected boolean allowDowngrade

      Whether to downgrade a snapshot dependency if allowSnapshots is false and there exists a version within the range fulfilling the criteria.

      Default false

      Since:
      2.12.0
    • allowMajorUpdates

      @Parameter(property="allowMajorUpdates", defaultValue="true") protected boolean allowMajorUpdates
      Whether to allow the major version number to be changed.
      Since:
      2.13.0
    • 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.13.0
    • 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.13.0
  • Constructor Details

    • UpdateParentMojo

      @Inject public UpdateParentMojo(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