List<ArtifactRepository> (List<MavenRemoteRepository> repositories) { List<ArtifactRepository> result = new ArrayList<>(); for (MavenRemoteRepository each : repositories) { try { result.add(buildArtifactRepository(Maven40ModelConverter.toNativeRepository(each))); } catch (InvalidRepositoryException e) { MavenServerGlobals.getLogger().warn(e); } } return result; }