Search in sources :

Example 1 with FailedToResolveDependency

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);
    }
}
Also used : FailedToResolveDependency(io.fabric8.maven.FailedToResolveDependency) DefaultDependencyNode(org.eclipse.aether.graph.DefaultDependencyNode)

Aggregations

FailedToResolveDependency (io.fabric8.maven.FailedToResolveDependency)1 DefaultDependencyNode (org.eclipse.aether.graph.DefaultDependencyNode)1