XCOMMONS-379: ExtensionManager#resolveVersion only look at first repository
* fix build
(cherry picked from commit 7492a2bd17c2327713a5b7f411ec7dd8032bd172)