#842 Honor skip configuration in reports

This commit is contained in:
Andrew Carr
2017-08-25 13:54:40 -05:00
parent 1049a18a15
commit e203bc63e9

View File

@@ -593,6 +593,11 @@ public abstract class BaseDependencyCheckMojo extends AbstractMojo implements Ma
* @throws MavenReportException if a maven report exception occurs
*/
public void generate(Sink sink, Locale locale) throws MavenReportException {
if (skip) {
getLog().info("Skipping report generation " + getName(Locale.US));
return;
}
generatingSite = true;
try {
validateAggregate();