Quickfix: create artifact cache dir if doesn't exist
@@ -311,8 +311,14 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
var firstLetter = revision.groupId.substring(0, 1);
var outputPath = baseDir + File.separator + firstLetter +
File.separator + revision.groupId +
- File.separator + revision.artifactId +
- File.separator + revision.version.toString() + ".json";
+ File.separator + revision.artifactId;
+
+ File directory = new File(outputPath);
+ if (! directory.exists()){
+ var result = directory.mkdir();
+ }
+
+ outputPath += File.separator + revision.version.toString() + ".json";
FileWriter outputFile = new FileWriter(outputPath);
outputFile.write(output.toString());
