From e1a2f11b0a9eb5827525b075bdec8fd4cea5cf90 Mon Sep 17 00:00:00 2001 From: Ryan Schmitt Date: Mon, 19 May 2025 11:35:52 -0700 Subject: [PATCH] Fix mvnw on macOS Sequoia This change pulls in a fix from a newer version of the maven-wrapper-plugin that fixes a bug in verifying the distributionSha256Sum using the version of `sha256sum` that ships with macOS Sequoia. See: * https://issues.apache.org/jira/browse/MWRAPPER-150 * https://github.com/apache/maven-wrapper/commit/b2ff9cdfa2d4a1f2bc0d4f039c0efc297b0c5875 --- mvnw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvnw b/mvnw index 19529ddf8c6..14c58dcb002 100755 --- a/mvnw +++ b/mvnw @@ -227,7 +227,7 @@ if [ -n "${distributionSha256Sum-}" ]; then echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 exit 1 elif command -v sha256sum >/dev/null; then - if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then distributionSha256Result=true fi elif command -v shasum >/dev/null; then