use of io.fabric8.maven.FailedToResolveDependency in project fabric8 by jboss-fuse.
the class AetherBasedResolver method handleDependencyResolveFailure.
protected void handleDependencyResolveFailure(DependencyNode pomNode, Dependency dependency, Exception e) throws FailedToResolveDependency {
FailedToResolveDependency exception = new FailedToResolveDependency(dependency, e);
if (throwExceptionsOnResolveDependencyFailure) {
throw exception;
} else {
LOGGER.warn(exception.getMessage(), e);
// lets just add the current dependency without its full dependency tree
DefaultDependencyNode node = new DefaultDependencyNode(dependency);
pomNode.getChildren().add(node);
}
}
Aggregations