From: Bengt Thuree Date: Thu, 9 Mar 2023 09:50:41 +0000 (+1100) Subject: FIX: Revert clm-maven plugin X-Git-Tag: v0.84.0^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=fd801fd5832b6f8538960e0ddb5fd98d71255b8d;p=releng%2Fglobal-jjb.git FIX: Revert clm-maven plugin Latest version of clm-maven plugin (clm-maven-plugin:2.42.0-01) is not working in our environment. We get the following error Failed to execute goal com.sonatype.clm:clm-maven-plugin:2.42.0-01:index (default-cli) on project babel: Failed to invoke Maven build. Maven execution failed, exit code: 1 -> [Help 1] This patch pins the previous working plugin which is 2.41.0-02 Issue-ID: IT-25225 Change-Id: I3d87d5adc954baf703f29816c0e295e0203b4f40 Signed-off-by: Bengt Thuree --- diff --git a/releasenotes/notes/revert_clm_maven_plugin-db2a239e6aa22f07.yaml b/releasenotes/notes/revert_clm_maven_plugin-db2a239e6aa22f07.yaml new file mode 100644 index 00000000..a310a0c8 --- /dev/null +++ b/releasenotes/notes/revert_clm_maven_plugin-db2a239e6aa22f07.yaml @@ -0,0 +1,11 @@ +--- +fixes: + - | + The latest (2.42.0.01) clm-maven-plugin introduced an error in our + environment. + + Failed to execute goal com.sonatype.clm:clm-maven-plugin:2.42.0-01:index + (default-cli) on project babel: Failed to invoke Maven build. + Maven execution failed, exit code: 1 -> [Help 1] + + This fix will pin the clm-maven-plugin to the previous version (2.41.0-02) diff --git a/shell/sonatype-clm.sh b/shell/sonatype-clm.sh index 20719747..4abe70eb 100644 --- a/shell/sonatype-clm.sh +++ b/shell/sonatype-clm.sh @@ -21,7 +21,7 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN $MAVEN_GOALS dependency:tree com.sonatype.clm:clm-maven-plugin:index \ +$MVN $MAVEN_GOALS dependency:tree com.sonatype.clm:clm-maven-plugin:2.41.0-02:index \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ -DaltDeploymentRepository=staging::default::file:"$WORKSPACE"/m2repo \