resolve issue #815

This commit is contained in:
Jeremy Long
2017-07-22 07:22:37 -04:00
parent af9bc9ec3e
commit 37b9f49467
4 changed files with 102 additions and 0 deletions

View File

@@ -147,6 +147,9 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
}
showSummary(this.getProject(), engine.getDependencies());
checkForFailure(engine.getDependencies());
if (exCol != null && this.isFailOnError()) {
throw new MojoExecutionException("One or more exceptions occurred during dependency-check analysis", exCol);
}
engine.cleanup();
Settings.cleanup();
}