File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,12 @@ function find_existing_version_pom() {
1818 local version=$( xmllint --xpath ' /*[local-name()="project"]/*[local-name()="version"]/text()' \
1919 " ${pom_file} " )
2020 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 "
21+ if [ -z " ${group_id} " ] || [ -z " ${version} " ]; then
22+ 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 "
2327 exit 1
2428 fi
2529 if [[ " ${version} " == * SNAPSHOT* ]] && [ " ${artifact_id} " != " google-cloud-java" ]; then
You can’t perform that action at this time.
0 commit comments