MODE-2201 Ported the actual fix for handling jar based repository URLs.