From 9525a673377cbae9da42e202a9a072dc67baa63f Mon Sep 17 00:00:00 2001 From: Eric Ball Date: Tue, 21 Oct 2025 18:21:26 -0700 Subject: [PATCH] Fix: Remove "default" from altDeploymentRepo We are seeing warnings in our maven jobs that "staging::default::file" is legacy syntax, and should be replaced with "staging::file". This patch fixes both instances of this syntax in our scripts. Change-Id: Ic2a1c5d19670140f8803edb3ef30bb3908e3a995 Issue-ID: IT-28843 Signed-off-by: Eric Ball --- releasenotes/notes/fix-mvn-warning-934f3e9db086d79d.yaml | 5 +++++ shell/maven-build.sh | 2 +- shell/sonatype-clm.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix-mvn-warning-934f3e9db086d79d.yaml diff --git a/releasenotes/notes/fix-mvn-warning-934f3e9db086d79d.yaml b/releasenotes/notes/fix-mvn-warning-934f3e9db086d79d.yaml new file mode 100644 index 00000000..147eeeac --- /dev/null +++ b/releasenotes/notes/fix-mvn-warning-934f3e9db086d79d.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Change syntax for mvn altDeploymentRepository from "staging::default::file" + to "staging::file" to remove warning about legacy syntax. diff --git a/shell/maven-build.sh b/shell/maven-build.sh index 29de088e..63446d9a 100644 --- a/shell/maven-build.sh +++ b/shell/maven-build.sh @@ -25,5 +25,5 @@ $MVN $MAVEN_GOALS \ -e \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ - -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \ + -DaltDeploymentRepository=staging::file:"$WORKSPACE"/m2repo \ $MAVEN_OPTIONS $MAVEN_PARAMS diff --git a/shell/sonatype-clm.sh b/shell/sonatype-clm.sh index 20719747..5921c5e9 100644 --- a/shell/sonatype-clm.sh +++ b/shell/sonatype-clm.sh @@ -24,5 +24,5 @@ export MAVEN_OPTS $MVN $MAVEN_GOALS dependency:tree com.sonatype.clm:clm-maven-plugin:index \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ - -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \ + -DaltDeploymentRepository=staging::file:"$WORKSPACE"/m2repo \ $MAVEN_OPTIONS $MAVEN_PARAMS -- 2.16.6