Class UseLatestReleasesMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="use-latest-releases", threadSafe=true) public class UseLatestReleasesMojo extends UseLatestVersionsMojoBase
Replaces any release versions (i.e. versions that are not snapshots and do not have a year-month-day suffix) with the latest release version. This goal will not replace versions of dependencies which use snapshots or versions with a year-month-day suffix.
Since:
1.0-alpha-3
Author:
Stephen Connolly
  • Field Details

    • allowMajorUpdates

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

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

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

      Only valid if allowSnapshots is false.

      Since:
      2.15.0
  • Constructor Details

    • UseLatestReleasesMojo

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