Class KnowledgeExportMojo

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

@Mojo(name="knowledge-export", defaultPhase="package") public class KnowledgeExportMojo extends Object implements org.apache.maven.api.plugin.Mojo
Exports a ledger-form knowledge set as a full standalone protobuf artifact and attaches it under a declared classifier — by default unreasoned-pb, the settled name for a stated-only export the consumer classifies on load (IKE-Network/ike-issues#933). The ledger replay is reasoner-blind, so what this goal produces is always the whole unreasoned set; changeset is reserved for a genuine delta layered on a released base (declare it explicitly where that is truly what ships — delta authoring doctrine is IKE-Network/ike-issues#844), and the classified counterpart, reasoned-pb, comes from ike:kb-assemble's export step.

The goal is a thin face over the knowledge-pipeline SPI (network.ike.tooling:ike-knowledge-spi): it builds a typed ExportRequest, and the KnowledgeExporter implementation is resolved by ServiceLoader from the project's runtime classpath inside a forked seam — declare network.ike.knowledge:ike-knowledge-provider at the use site (or rely on the parent POM's default wiring). This plugin never depends on a store engine.

Typical use — a *-changeset module depending on its *-terms ledger module plus the provider:

<plugin>
    <groupId>network.ike.tooling</groupId>
    <artifactId>ike-maven-plugin</artifactId>
    <executions>
        <execution>
            <goals><goal>knowledge-export</goal></goals>
        </execution>
    </executions>
</plugin>
Since:
234
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates this goal instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Builds the typed export request, runs the KnowledgeExporter across the forked seam on the project's runtime classpath, and attaches the export under the declared classifier.
    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

    • KnowledgeExportMojo

      public KnowledgeExportMojo()
      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 export request, runs the KnowledgeExporter across the forked seam on the project's runtime classpath, and attaches the export under the declared classifier.
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo
      Throws:
      org.apache.maven.api.plugin.MojoException - if the classpath cannot be resolved, the seam fails, or the output file was not produced