### Question:
MavenResolver { public PreorderNodeListGenerator resolve(String coordinate, List<RemoteRepository> repositories) throws MavenResolverException { try { Dependency project = new Dependency(new DefaultArtifact(coordinate), "compile"); CollectRequest collectRequest = new CollectRequest(); collectRequest.setRoot(project); for (RemoteRepository repo : repositories) { collectRequest.addRepository(repo); } DependencyNode node = this.repoSystem.collectDependencies(this.session, collectRequest).getRoot(); DependencyRequest dependencyRequest = new DependencyRequest(); dependencyRequest.setRoot(node); this.repoSystem.resolveDependencies(session, dependencyRequest); PreorderNodeListGenerator nlg = new PreorderNodeListGenerator(); node.accept(nlg); return nlg; } catch (DependencyCollectionException | DependencyResolutionException e) { throw new MavenResolverException("Unable to resolve " + coordinate + " from " + repositories.toString(), e); } } private  MavenResolver(RepositorySystem repo, RepositorySystemSession session); PreorderNodeListGenerator resolve(String coordinate, List<RemoteRepository> repositories);  }### Answer:
@Test @Ignore public void testDefault() throws Exception { MavenResolver resolver = new MavenResolver.Builder().build(); List<RemoteRepository> repos = new ArrayList<>(); repos.add(new RemoteRepository.Builder("snapshots", "default", "https: PreorderNodeListGenerator nlg = resolver .resolve("org.kevoree.library:org.kevoree.library.javaNode:5.5.0-SNAPSHOT", repos); for (File f : nlg.getFiles()) { System.out.println(f.getAbsolutePath()); } }