From 8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Wed, 14 Apr 2021 13:16:03 -0400 Subject: [PATCH] fix: release scripts from issuing overlapping phases (#1043) `mvn deploy` will run `mvn install` so specifying `mvn install deploy` is redundant at best. At worst, it will cause plugins like maven-shade-plugin to be executed twice re-shading itself --- .../gcp/templates/java_library/.kokoro/release/snapshot.sh | 2 +- synthtool/gcp/templates/java_library/.kokoro/release/stage.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synthtool/gcp/templates/java_library/.kokoro/release/snapshot.sh b/synthtool/gcp/templates/java_library/.kokoro/release/snapshot.sh index 098168a73..1f55b7702 100755 --- a/synthtool/gcp/templates/java_library/.kokoro/release/snapshot.sh +++ b/synthtool/gcp/templates/java_library/.kokoro/release/snapshot.sh @@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ +mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DperformRelease=true \ -Dgpg.executable=gpg \ diff --git a/synthtool/gcp/templates/java_library/.kokoro/release/stage.sh b/synthtool/gcp/templates/java_library/.kokoro/release/stage.sh index 16126d2eb..8a1033843 100755 --- a/synthtool/gcp/templates/java_library/.kokoro/release/stage.sh +++ b/synthtool/gcp/templates/java_library/.kokoro/release/stage.sh @@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml" # attempt to stage 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn clean install deploy -B \ + mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ -DperformRelease=true \