Class KnowledgeVerifyMojo

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

@Mojo(name="knowledge-verify", defaultPhase="verify") public class KnowledgeVerifyMojo extends Object implements org.apache.maven.api.plugin.Mojo
Verifies a knowledge artifact in a pristine store — the round-trip gate (IKE-Network/ike-issues#951): the artifact must load into a fresh store exactly as a consumer's import would load it, manifest and count-equality checks intact, and (with FIT_REFERENCES) every reference must resolve within the artifact plus its declared base. A defect surfaces here, in the producing build, instead of in a consumer's import dialog.

The goal is a thin face over the knowledge-pipeline SPI: it builds a typed VerifyRequest, and the KnowledgeVerifier implementation is resolved by ServiceLoader from the project's runtime classpath inside a forked seam. The build fails when the report carries any ERROR finding.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates this goal instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Builds the typed verification request, runs the KnowledgeVerifier across the forked seam, logs every finding, and fails the build on any ERROR.
    protected org.apache.maven.api.plugin.Log
    Access the Maven logger.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KnowledgeVerifyMojo

      public KnowledgeVerifyMojo()
      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()
      Builds the typed verification request, runs the KnowledgeVerifier across the forked seam, logs every finding, and fails the build on any ERROR.
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo
      Throws:
      org.apache.maven.api.plugin.MojoException - if the artifact is missing, an input cannot be parsed or resolved, the seam fails, or the report carries an ERROR