Class RenderSbomViewerMojo

java.lang.Object
network.ike.plugin.RenderSbomViewerMojo
All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo

@Mojo(name="render-sbom-viewer", defaultPhase="pre-site") public class RenderSbomViewerMojo extends Object implements org.apache.maven.api.plugin.Mojo
Render a Web-friendly SBOM viewer page from the CycloneDX SBOM (ike-issues#341).

The third human-facing view of the same bom.json:

  • licenses.html — SPDX-grouped slice (#335)
  • built-with.html — narrative + summary slice (#336)
  • dependencies.html (this mojo) — full sortable component table

All three derive from the same source of truth. This mojo walks every component in the SBOM and emits a single rendered page with each component's coordinates, SPDX license, type, and (when present) hash digests.

Replaces the auto-generated dependencies report from maven-project-info-reports-plugin, which scans only declared <dependencies> (not the full transitive graph the SBOM captures) and reports licenses verbatim from each POM (not SPDX-canonical).

Skip with -Dike.skip.sbom-viewer=true.

mvn package                      # produces bom.json
mvn ike:render-sbom-viewer       # produces dependencies.adoc
mvn site                         # renders dependencies.html
See Also:
  • Constructor Details

    • RenderSbomViewerMojo

      public RenderSbomViewerMojo()
      Creates this goal instance.
  • Method Details

    • getLog

      protected org.apache.maven.api.plugin.Log getLog()
      Access the Maven logger.
      Returns:
      the logger
    • execute

      public void execute() throws org.apache.maven.api.plugin.MojoException
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo
      Throws:
      org.apache.maven.api.plugin.MojoException