Class CentralStageMojo

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

@Mojo(name="central-stage", projectRequired=false) public class CentralStageMojo extends Object implements org.apache.maven.api.plugin.Mojo
Finalize a Maven Central staging directory: prune the Maven 4 -build.pom artifacts, swap generated BOMs over their staged stub POMs, re-sign, and verify (IKE-Network/ike-issues#853, IKE-Network/ike-issues#966).

Invoked by the async Central deploy sentinel script (IKE-Network/ike-issues#484) between its signed staging deploy and the JReleaser upload — always as a fully pinned groupId:artifactId:version:central-stage matching the plugin that rendered the script, never through the build's own plugin pin, which may lag one release behind (#966). The sync deploy path runs the same CentralStaging logic in-process without this goal.

Usage (as rendered into the sentinel script):

mvn -N -B network.ike.tooling:ike-maven-plugin:242:central-stage \
    -Dike.central.buildRoot=/path/to/worktree \
    -Dike.central.stagingDir=/path/to/worktree/target/staging-deploy

Fails (non-zero) when a swapped POM does not verify, so the sentinel script treats it as a retry-eligible cycle failure — a stub can no longer reach Central silently.

  • Constructor Details

    • CentralStageMojo

      public CentralStageMojo()
      Creates this goal instance.
  • Method Details

    • execute

      public void execute()
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo