Class KbAssembleMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
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, CHANGESET, or SOURCE; 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. A SOURCE entry is
SOURCE importer spec [name=value ...]: a source release (a file, a directory,
or a coordinate) written into the store by the named knowledge importer
(dev.ikm.tinkar:importer-api), which the project's runtime classpath carries:
<inputs>
<input>PB network.ike.foundation:ike-starter-set:zip:unreasoned-pb:1-SNAPSHOT</input>
<input>SOURCE snomed-rf2 ${snomed.release} release=full</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
-