Quickfix: catch errors for artifacts not in the dependants graph
@@ -187,9 +187,9 @@ public class VulnerabilityCacheInvalidationPlugin extends Plugin {
return;
}
+ try {
// Resolve the set of transitive dependants for this product.
this.depSet = VulnerabilityCacheInvalidationExtension.graphResolver.resolveDependents(groupId, artifactId, version, -1, true);
-
this.depSet.add(new Revision(groupId, artifactId, version, new Timestamp(-1)));
// Go over the set and invalidate the cache for each dependant.
@@ -206,6 +206,10 @@ public class VulnerabilityCacheInvalidationPlugin extends Plugin {
// TODO: possible optimization: we don't really need to delete the whole file, or do we?
MavenUtilities.forceDeleteFile(outputFile);
}
+
+ } catch (RuntimeException e) {
+ logger.error("Error resolving dependants for vulnerability cache invalidator", e);
+ }
}
@Override
