From fd801fd5832b6f8538960e0ddb5fd98d71255b8d Mon Sep 17 00:00:00 2001 From: Bengt Thuree Date: Thu, 9 Mar 2023 20:50:41 +1100 Subject: [PATCH] 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 --- .../notes/revert_clm_maven_plugin-db2a239e6aa22f07.yaml | 11 +++++++++++ shell/sonatype-clm.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/revert_clm_maven_plugin-db2a239e6aa22f07.yaml 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 \ -- 2.16.6