From af65258a0a3ed4feaa35403f3db5f517828ffe3d Mon Sep 17 00:00:00 2001 From: rng Date: Thu, 5 Mar 2026 11:08:23 +1100 Subject: [PATCH 1/3] Typo mistake --- mvnw-ca | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mvnw-ca b/mvnw-ca index aa3be595..aa3a0b7b 100755 --- a/mvnw-ca +++ b/mvnw-ca @@ -18,6 +18,7 @@ if command -v aws >/dev/null 2>&1 && --query authorizationToken --output text 2>/dev/null || true )" export CODEARTIFACT_AUTH_TOKEN + echo "Code artifact token ${CODEARTIFACT_AUTH_TOKEN}" fi # Get repository URL if not set @@ -32,9 +33,10 @@ if command -v aws >/dev/null 2>&1 && --query repositoryEndpoint --output text 2>/dev/null || true )" export CODEARTIFACT_REPO_URL + echo "Code artifact URL ${CODEARTIFACT_REPO_URL}" else - echo + echo "Missing CODEARTIFACT_REPO_URL" fi fi -exec mvn "$@" +exec ./mvnw "$@" From 91f835b55635208bd11bdf68a50ba6441245de21 Mon Sep 17 00:00:00 2001 From: rng Date: Thu, 5 Mar 2026 11:10:42 +1100 Subject: [PATCH 2/3] Add intellj support --- mvnw-ca | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mvnw-ca b/mvnw-ca index aa3a0b7b..62c662cf 100755 --- a/mvnw-ca +++ b/mvnw-ca @@ -18,7 +18,8 @@ if command -v aws >/dev/null 2>&1 && --query authorizationToken --output text 2>/dev/null || true )" export CODEARTIFACT_AUTH_TOKEN - echo "Code artifact token ${CODEARTIFACT_AUTH_TOKEN}" + # For intellj config env injector + echo "CODEARTIFACT_AUTH_TOKEN=${CODEARTIFACT_AUTH_TOKEN}" fi # Get repository URL if not set @@ -33,7 +34,8 @@ if command -v aws >/dev/null 2>&1 && --query repositoryEndpoint --output text 2>/dev/null || true )" export CODEARTIFACT_REPO_URL - echo "Code artifact URL ${CODEARTIFACT_REPO_URL}" + # For intellj config env injector + echo "CODEARTIFACT_REPO_URL=${CODEARTIFACT_REPO_URL}" else echo "Missing CODEARTIFACT_REPO_URL" fi From bffdeecf172a77d83762a9717575c0dafded46a2 Mon Sep 17 00:00:00 2001 From: rng Date: Thu, 5 Mar 2026 11:23:04 +1100 Subject: [PATCH 3/3] Add global mvn check --- mvnw-ca | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mvnw-ca b/mvnw-ca index 62c662cf..da4e3eae 100755 --- a/mvnw-ca +++ b/mvnw-ca @@ -41,4 +41,10 @@ if command -v aws >/dev/null 2>&1 && fi fi -exec ./mvnw "$@" +if command -v mvn >/dev/null 2>&1; then + echo "mvn exists" + mvn "$@" +else + echo "mvn not found, use wrapper" + exec ./mvnw "$@" +fi