In T238004: Implement sonarcloud integration for Java projects in the same way as PHP projects we passed a value to set gerritProjectName when triggering analysis of Java projects. But this value seems incorrect, because it's based on $ZUUL_PROJECT which does not map back cleanly to a string that we can use for posting gerrit reviews.
For example patches to this project https://gerrit.wikimedia.org/r/c/wikidata/query/rdf/+/572873 send a value of wikidata/query/rdf. But actually we need org.wikidata.query.rdf. @Gehel says "we should be able to extract the gerrit path from the <scm/> section" of pom.xml