We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a352fe commit 4b21994Copy full SHA for 4b21994
1 file changed
generation/check_existing_release_versions.sh
@@ -18,8 +18,12 @@ function find_existing_version_pom() {
18
local version=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' \
19
"${pom_file}")
20
echo -n "Checking ${group_id}:${artifact_id}:${version}:"
21
- if [ -z "${group_id}" ] || [ -z "${artifact_id}" ] || [ -z "${version}" ]; then
22
- echo "Couldn't parse the pom file: $pom_file"
+ if [ -z "${group_id}" ] || [ -z "${version}" ]; then
+ echo " Skipping file without explicit coordinates (likely inherits): $pom_file"
23
+ return 0
24
+ fi
25
+ if [ -z "${artifact_id}" ]; then
26
+ echo "Couldn't parse artifact_id in the pom file: $pom_file"
27
exit 1
28
fi
29
if [[ "${version}" == *SNAPSHOT* ]] && [ "${artifact_id}" != "google-cloud-java" ]; then
0 commit comments