Class ManifestMojo

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

@Mojo(name="manifest", defaultPhase="generate-resources") public class ManifestMojo extends Object implements org.apache.maven.api.plugin.Mojo
Generate the package manifest of a topic library laid out as packages (dev-adoc-packages, IKE-Network/ike-issues#1341): target/adoc-meta/META-INF/ike/<groupId>/<artifactId>/manifest.yaml, from the POM and the tree, never kept by hand. The manifest records the artifact's coordinates, the packages it ships, each as {name: <group>/<domain>, kind: topics|library}, and the path of its registry. A package's kind is library when the POM property ike.adoc.library-package names it, or when it holds an index.adoc and no topic. The parent POM adds the target/adoc-meta directory to the adoc zip, so the manifest ships beside the registry under META-INF, keyed by coordinates where it cannot collide in a union.

Gated by the POM property ike.adoc.layout=packages: a library without it is skipped, so the layout before packages keeps building unchanged. Runs at generate-resources. Skip with -Dike.skip.manifest=true.

Since:
136
  • Constructor Details

    • ManifestMojo

      public ManifestMojo()
      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