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 \