From 7e8e898bcc9bf75fe4eb4dbbcdd0c6f6bd45a515 Mon Sep 17 00:00:00 2001 From: seanly liu Date: Fri, 16 Jun 2023 06:43:55 +0000 Subject: [PATCH] ignore bomGenerator.generate() call Signed-off-by: Seanly liu --- src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java b/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java index 0b180474..2797e243 100644 --- a/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java +++ b/src/main/java/org/cyclonedx/maven/BaseCycloneDxMojo.java @@ -360,7 +360,7 @@ private void saveBom(Bom bom) throws ParserConfigurationException, IOException, MojoExecutionException { if ("all".equalsIgnoreCase(outputFormat) || "xml".equalsIgnoreCase(outputFormat)) { final BomXmlGenerator bomGenerator = BomGeneratorFactory.createXml(schemaVersion(), bom); - bomGenerator.generate(); + //bomGenerator.generate(); final String bomString = bomGenerator.toXmlString(); saveBomToFile(bomString, "xml", new XmlParser());