Class UseLatestSnapshotsMojo

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

@Mojo(name="use-latest-snapshots", threadSafe=true) public class UseLatestSnapshotsMojo extends UseLatestVersionsMojoBase
Replaces any release versions with the latest snapshot version (if it has been deployed).
Since:
1.0-beta-1
Author:
Stephen Connolly
  • Field Details

    • allowMajorUpdates

      @Parameter(property="allowMajorUpdates", defaultValue="false") protected boolean allowMajorUpdates
      Whether to allow the major version number to be changed.
      Since:
      1.0-beta-1
    • allowMinorUpdates

      @Parameter(property="allowMinorUpdates", defaultValue="false") protected boolean allowMinorUpdates
      Whether to allow the minor version number to be changed.

      Note: false also implies allowMajorUpdates false

      Since:
      1.0-beta-1
    • 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.0-beta-1
  • Constructor Details

    • UseLatestSnapshotsMojo

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