Class DisplayParentUpdatesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="display-parent-updates", threadSafe=true) public class DisplayParentUpdatesMojo extends AbstractVersionsDisplayMojo
Displays any updates of the project's parent project
Since:
2.2
Author:
Stephen Connolly
  • Field Details

    • MESSAGE_LENGTH

      public static final int MESSAGE_LENGTH
      See Also:
    • 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:
      2.16.2
    • forceUpdate

      @Parameter(property="forceUpdate", defaultValue="false") protected boolean forceUpdate
      to update parent version by force when it is RELEASE or LATEST
      Since:
      2.16.2
    • 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.16.2
    • 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.16.2
    • allowMajorUpdates

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

    • DisplayParentUpdatesMojo

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