Get-java-PackageInfoFromPackageFile is ultimately what's called by create-tags-and-git-release.yml to create the release tag. The current release tag is created using the ArtifactId and version
ReleaseTag = "$($pkgId)_$($pkgVersion)"
With duplicate ArtifactIds the tag needs to be created with the following format +_ where + is the ArtifactNameConcatenator.