test_class.declarator: resolver
test_class.modifier: private
test_class.original_string: private MavenDependencyResolver resolver;
test_class.type: MavenDependencyResolver
test_class.var_name: resolver
test_class.declarator: addonFilter = new Predicate<Dependency>()
     {
        @Override
        public boolean accept(Dependency dependency)
        {
           return "forge-addon".equals(dependency.getCoordinate().getClassifier());
        }
     }
test_class.modifier: private
test_class.original_string: private Predicate<Dependency> addonFilter = new Predicate<Dependency>()
     {
        @Override
        public boolean accept(Dependency dependency)
        {
           return "forge-addon".equals(dependency.getCoordinate().getClassifier());
        }
     };
test_class.type: Predicate<Dependency>
test_class.var_name: addonFilter
test_class.file: maven/impl/src/test/java/org/jboss/forge/addon/maven/dependencies/MavenDependencyResolverTest.java
test_class.identifier: MavenDependencyResolverTest
test_case.body: @Test(expected = RuntimeException.class)
     public void testResolveWildcardArtifactId() throws Exception
     {
        DependencyQuery query = DependencyQueryBuilder.create(CoordinateBuilder.create().setGroupId("org.jboss.forge")
                 .setArtifactId("").setClassifier("forge-addon"));
        Set<Dependency> coreAddons = resolver.resolveDependencies(query);
        Assert.assertFalse(coreAddons.isEmpty());
     }
test_case.class_method_signature: MavenDependencyResolverTest.testResolveWildcardArtifactId()
test_case.full_signature: @Test(expected = RuntimeException.class) public void testResolveWildcardArtifactId()
test_case.identifier: testResolveWildcardArtifactId
test_case.invocations: create setClassifier setArtifactId setGroupId create resolveDependencies assertFalse isEmpty
test_case.modifiers: @Test(expected = RuntimeException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResolveWildcardArtifactId()
focal_class.declarator: container = new MavenContainer()
focal_class.modifier: private final
focal_class.original_string: private final MavenContainer container = new MavenContainer();
focal_class.type: MavenContainer
focal_class.var_name: container
focal_class.declarator: resourceFactory
focal_class.modifier: private
focal_class.original_string: private ResourceFactory resourceFactory;
focal_class.type: ResourceFactory
focal_class.var_name: resourceFactory
focal_class.file: maven/impl/src/main/java/org/jboss/forge/addon/maven/dependencies/MavenDependencyResolver.java
focal_class.identifier: MavenDependencyResolver
focal_class.interfaces: implements DependencyResolver
focal_class.class_method_signature: MavenDependencyResolver.MavenDependencyResolver()
focal_class.full_signature: public  MavenDependencyResolver()
focal_class.identifier: MavenDependencyResolver
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  MavenDependencyResolver()
focal_class.class_method_signature: MavenDependencyResolver.MavenDependencyResolver(ResourceFactory resourceFactory)
focal_class.full_signature: public  MavenDependencyResolver(ResourceFactory resourceFactory)
focal_class.identifier: MavenDependencyResolver
focal_class.modifiers: public
focal_class.parameters: (ResourceFactory resourceFactory)
focal_class.signature:  MavenDependencyResolver(ResourceFactory resourceFactory)
focal_class.class_method_signature: MavenDependencyResolver.resolveDependencies(DependencyQuery query)
focal_class.full_signature: @Override public Set<Dependency> resolveDependencies(DependencyQuery query)
focal_class.identifier: resolveDependencies
focal_class.modifiers: @Override public
focal_class.parameters: (DependencyQuery query)
focal_class.return: Set<Dependency>
focal_class.signature: Set<Dependency> resolveDependencies(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveVersions(DependencyQuery query)
focal_class.full_signature: @Override public List<Coordinate> resolveVersions(DependencyQuery query)
focal_class.identifier: resolveVersions
focal_class.modifiers: @Override public
focal_class.parameters: (DependencyQuery query)
focal_class.return: List<Coordinate>
focal_class.signature: List<Coordinate> resolveVersions(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.getVersions(DependencyQuery query)
focal_class.full_signature:  VersionRangeResult getVersions(DependencyQuery query)
focal_class.identifier: getVersions
focal_class.parameters: (DependencyQuery query)
focal_class.return: VersionRangeResult
focal_class.signature: VersionRangeResult getVersions(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveArtifact(DependencyQuery query)
focal_class.full_signature: @Override public Dependency resolveArtifact(DependencyQuery query)
focal_class.identifier: resolveArtifact
focal_class.modifiers: @Override public
focal_class.parameters: (DependencyQuery query)
focal_class.return: Dependency
focal_class.signature: Dependency resolveArtifact(DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveDependencyHierarchy(final DependencyQuery query)
focal_class.full_signature: @Override public org.jboss.forge.addon.dependencies.DependencyNode resolveDependencyHierarchy(final DependencyQuery query)
focal_class.identifier: resolveDependencyHierarchy
focal_class.modifiers: @Override public
focal_class.parameters: (final DependencyQuery query)
focal_class.return: org.jboss.forge.addon.dependencies.DependencyNode
focal_class.signature: org.jboss.forge.addon.dependencies.DependencyNode resolveDependencyHierarchy(final DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.resolveDependencyMetadata(final DependencyQuery query)
focal_class.full_signature: @Override public DependencyMetadata resolveDependencyMetadata(final DependencyQuery query)
focal_class.identifier: resolveDependencyMetadata
focal_class.modifiers: @Override public
focal_class.parameters: (final DependencyQuery query)
focal_class.return: DependencyMetadata
focal_class.signature: DependencyMetadata resolveDependencyMetadata(final DependencyQuery query)
focal_class.class_method_signature: MavenDependencyResolver.getResourceFactory()
focal_class.full_signature: private ResourceFactory getResourceFactory()
focal_class.identifier: getResourceFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ResourceFactory
focal_class.signature: ResourceFactory getResourceFactory()
focal_method.body: @Override
     public Set<Dependency> resolveDependencies(DependencyQuery query)
     {
        Set<Dependency> result = new HashSet<>();
        Predicate<Dependency> filter = query.getDependencyFilter();
        RepositorySystem system = container.getRepositorySystem();
        Settings settings = container.getSettings();
  
        DefaultRepositorySystemSession session = container.setupRepoSession(system, settings);
  
        Artifact queryArtifact = MavenConvertUtils.coordinateToMavenArtifact(query.getCoordinate());
  
        List<RemoteRepository> remoteRepos = MavenConvertUtils.convertToMavenRepos(query.getDependencyRepositories(),
                 settings);
        remoteRepos.addAll(MavenRepositories.getRemoteRepositories(container, settings));
  
        CollectRequest collectRequest = new CollectRequest(new org.eclipse.aether.graph.Dependency(queryArtifact,
                 query.getScopeType()), remoteRepos);
  
        DependencyRequest request = new DependencyRequest(collectRequest, null);
  
        DependencyResult artifacts;
        try
        {
           artifacts = system.resolveDependencies(session, request);
        }
        catch (NullPointerException e)
        {
           throw new RuntimeException("Could not resolve dependencies from Query [" + query
                    + "] due to underlying exception", e);
        }
        catch (DependencyResolutionException e)
        {
           throw new RuntimeException(e);
        }
        DependencyNode root = artifacts.getRoot();
        ResourceFactory factory = getResourceFactory();
        for (DependencyNode node : root.getChildren())
        {
           Dependency d = MavenConvertUtils.convertToDependency(factory, node);
           if (filter == null || filter.accept(d))
           {
              result.add(d);
           }
  
        }
        return result;
     }
focal_method.class_method_signature: MavenDependencyResolver.resolveDependencies(DependencyQuery query)
focal_method.full_signature: @Override public Set<Dependency> resolveDependencies(DependencyQuery query)
focal_method.identifier: resolveDependencies
focal_method.invocations: getDependencyFilter getRepositorySystem getSettings setupRepoSession coordinateToMavenArtifact getCoordinate convertToMavenRepos getDependencyRepositories addAll getRemoteRepositories getScopeType resolveDependencies getRoot getResourceFactory getChildren convertToDependency accept add
focal_method.modifiers: @Override public
focal_method.parameters: (DependencyQuery query)
focal_method.return: Set<Dependency>
focal_method.signature: Set<Dependency> resolveDependencies(DependencyQuery query)