git:///var/work/repo?/pom.xml#1.1.0-RELEASE You can also use the GitURI class' toURI functions to help build URIs. This can work with normal or bare repositories ...