diff --git a/generation/check_existing_release_versions.sh b/generation/check_existing_release_versions.sh index ccdc121afe6c..ac0fa840c329 100755 --- a/generation/check_existing_release_versions.sh +++ b/generation/check_existing_release_versions.sh @@ -44,7 +44,10 @@ function find_existing_version_pom() { return_code=0 for pom_file in $(find . -maxdepth 3 -name pom.xml|sort --dictionary-order); do - if [[ "${pom_file}" == *java-samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml ]]; then + # Exclude java-vertexai because it has been archived and replaced with a dummy POM. + # We do not plan to release any new versions for it, so we don't want to check if its + # version (which already exists) is a duplicate. + if [[ "${pom_file}" == *java-samples* || "${pom_file}" == *showcase* || "${pom_file}" == *coverage-report* || "${pom_file}" == *sdk-platform-java/pom.xml || "${pom_file}" == *java-vertexai* ]]; then continue fi find_existing_version_pom "${pom_file}"