mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-16 00:33:46 +01:00
checkstyle correction
This commit is contained in:
@@ -51,11 +51,6 @@ import org.owasp.dependencycheck.utils.Settings;
|
||||
)
|
||||
public class AggregateMojo extends BaseDependencyCheckMojo {
|
||||
|
||||
/**
|
||||
* The key to store aggregate exception in the root Maven execution context.
|
||||
*/
|
||||
private static final String AGGREGATE_EXCEPTIONS = "AggregateExceptions";
|
||||
|
||||
/**
|
||||
* Executes the aggregate dependency-check goal. This runs dependency-check
|
||||
* and generates the subsequent reports.
|
||||
@@ -75,7 +70,7 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
|
||||
ExceptionCollection exCol = scanArtifacts(getProject(), engine);
|
||||
|
||||
for (MavenProject childProject : getDescendants(this.getProject())) {
|
||||
ExceptionCollection ex = scanArtifacts(childProject, engine);
|
||||
final ExceptionCollection ex = scanArtifacts(childProject, engine);
|
||||
if (ex != null) {
|
||||
if (exCol == null) {
|
||||
exCol = ex;
|
||||
@@ -139,20 +134,6 @@ public class AggregateMojo extends BaseDependencyCheckMojo {
|
||||
Settings.cleanup();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests if the project is being skipped in the Maven site report.
|
||||
*
|
||||
* @param project a project in the reactor
|
||||
* @return true if the project is skipped; otherwise false
|
||||
* @deprecated this function is no longer used, keeping this code around for
|
||||
* a little bit longer in case this needs to be used
|
||||
*/
|
||||
@Deprecated
|
||||
private boolean skipProject(MavenProject project) {
|
||||
final String skip = (String) project.getProperties().get("maven.site.skip");
|
||||
return "true".equalsIgnoreCase(skip) && isGeneratingSite();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a set containing all the descendant projects of the given
|
||||
* project.
|
||||
|
||||
Reference in New Issue
Block a user