@Test public void testResolve_artifactProblems() { Artifact hibernateCore = new DefaultArtifact("org.hibernate:hibernate-core:jar:3.5.1-Final"); ClassPathResult result = classPathBuilder.resolve(ImmutableList.of(hibernateCore), true); ImmutableList<UnresolvableArtifactProblem> artifactProblems = result.getArtifactProblems(); List<String> coordinates = artifactProblems.stream() .map(x -> x.getArtifact()) .map(x -> x.toString()) .collect(Collectors.toList()); assertThat(coordinates) .containsExactly("xerces:xerces-impl:jar:2.6.2", "xml-apis:xml-apis:jar:2.6.2"); }
public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } ClassPathBuilder();  ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder); }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } ClassPathBuilder();  ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder); ClassPathResult resolve(List<Artifact> artifacts, boolean full); }
ClassPathBuilder { public ClassPathResult resolve(List<Artifact> artifacts, boolean full) { DependencyGraph result; if (full) { result = dependencyGraphBuilder.buildFullDependencyGraph(artifacts); } else { result = dependencyGraphBuilder.buildVerboseDependencyGraph(artifacts); } return mediate(result); } ClassPathBuilder();  ClassPathBuilder(DependencyGraphBuilder dependencyGraphBuilder); ClassPathResult resolve(List<Artifact> artifacts, boolean full);  }