use of org.eclipse.aether.artifact.Artifact in project drools by kiegroup.
the class KieRepositoryScannerImpl method indexArtifacts.
private Map<ReleaseId, DependencyDescriptor> indexArtifacts() {
Map<ReleaseId, DependencyDescriptor> depsMap = new HashMap<ReleaseId, DependencyDescriptor>();
for (DependencyDescriptor dep : artifactResolver.getAllDependecies()) {
if (!"test".equals(dep.getScope()) && !"provided".equals(dep.getScope()) && !"system".equals(dep.getScope())) {
Artifact artifact = artifactResolver.resolveArtifact(dep.getReleaseId());
log.debug(artifact + " resolved to " + artifact.getFile());
if (isKJar(artifact.getFile())) {
depsMap.put(adapt(dep.getReleaseIdWithoutVersion()), new DependencyDescriptor(artifact));
}
} else {
log.debug("{} does not need to be resolved because in scope {}", dep, dep.getScope());
}
}
return depsMap;
}
Aggregations