Class KbAssembleMojo
java.lang.Object
network.ike.plugin.KbAssembleMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
@Mojo(name="kb-assemble",
defaultPhase="package")
public class KbAssembleMojo
extends Object
implements org.apache.maven.api.plugin.Mojo
Assembles a knowledge base from ordered knowledge artifacts — base data plus change
sets into a store, classified by default — optionally exports the classified store
as a standalone
reasoned-pb artifact (IKE-Network/ike-issues#933), and
optionally installs it into a
data-source directory a knowledge browser reads. The full-cycle goal: a starter set
becomes an openable, navigable KB in one build (IKE-Network/ike-issues#848, #850).
The goal is a thin face over the knowledge-pipeline SPI: it builds a typed
AssembleRequest, and the KnowledgeBaseAssembler 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).
Inputs are ordered ROLE spec entries: the role is STORE_SEED
(first position only), PB, or CHANGESET; the spec is either a Maven
coordinate (groupId:artifactId[:extension[:classifier]]:version, resolved
from the repositories) or a file path — captured verification change sets feed the
next iteration as file inputs:
<inputs>
<input>PB dev.ikm.data.tinkar:tinkar-starter-data:zip:reasoned-pb:20251009</input>
<input>CHANGESET ${project.basedir}/../my-changeset/target/my-changeset.zip</input>
</inputs>
- Since:
- 235
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KbAssembleMojo
public KbAssembleMojo()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()Resolves the ordered inputs, builds the typed assembly request, and runs theKnowledgeBaseAssembleracross the forked seam.- Specified by:
executein interfaceorg.apache.maven.api.plugin.Mojo- Throws:
org.apache.maven.api.plugin.MojoException- if an input cannot be parsed or resolved, the seam fails, or the store was not produced
-