REVIEW [2.9] NEXUS-6692: Remote URL validation

Backport of:
https://github.com/sonatype/nexus-oss/pull/626

Issue
https://issues.sonatype.org/browse/NEXUS-6692

CI
tbd