Update Maven wrapper

Apache 2.0

Update the version of Maven used in an existing Maven wrapper.

org.openrewrite.maven.UpdateMavenWrapper

Optional

An exact version number or node-style semver selector used to select the wrapper version number.

The distribution of the Maven wrapper to use.

  • "bin" uses a maven-wrapper.jar compiled binary.
  • "only-script" uses a lite version of mvnw/mvnw.cmd using wget/curl or powershell. (required wrapper 3.2.0 or newer)
  • "script" downloads maven-wrapper.jar or MavenWrapperDownloader.java to then download a full distribution.
  • "source" uses MavenWrapperDownloader.java source file.

Defaults to "bin".

An exact version number or node-style semver selector used to select the Maven version number.

The URL of the repository to download the Maven wrapper and distribution from. Supports repositories with a Maven layout. Defaults to https://repo.maven.apache.org/maven2.

addIfMissingBoolean

Add a Maven wrapper, if it's missing. Defaults to true.

enforceWrapperChecksumVerificationBoolean

Enforce checksum verification for the maven-wrapper.jar. Enabling this feature may sporadically result in build failures, such as MWRAPPER-103. Defaults to false.

mod run . --recipe=org.openrewrite.maven.UpdateMavenWrapper

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.