for (ModelProblem problem : buildingResult.getProblems())
{
ShellMessages.warn(writer, "[ " + problem.getSeverity() + " ] " + problem.getMessage() + " @ "
+ ModelProblemUtils.formatLocation(problem, problem.getModelId()));
}
DependencyResolutionResult resolutionResult = buildingResult.getDependencyResolutionResult();
for (Exception collectionError : resolutionResult.getCollectionErrors())
{
StringBuilder message = new StringBuilder();
message.append(collectionError.getMessage());
message.append('\n');
if(collectionError.getCause() != null)
{
message.append("Cause : ");
message.append(collectionError.getCause().getMessage());
}
ShellMessages.warn(writer, message.toString());
}
for (Dependency unresolvedDep : resolutionResult.getUnresolvedDependencies())
{
ShellMessages.warn(writer, "Failed to resolve dependency [ " + unresolvedDep + " ] , due to error(s) : "
+ resolutionResult.getResolutionErrors(unresolvedDep));
}
}