Class CentralStatusMojo
java.lang.Object
network.ike.plugin.CentralStatusMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
@Mojo(name="central-status",
projectRequired=false)
public class CentralStatusMojo
extends Object
implements org.apache.maven.api.plugin.Mojo
Report the status of asynchronous Maven Central deploys spawned
by
ike:release-publish -Dike.deploy.central.async=true
(IKE-Network/ike-issues#484).
Walks the sentinel directory (~/.cache/ike-release/
by default) and prints one line per recorded deploy with state,
retry cycles, elapsed time, and the log-file path. Exits non-zero
when any sentinel is in CentralDeploySentinel.State.FAILURE
— so a shell pipeline can branch on it — but treats
CentralDeploySentinel.State.PENDING as informational
(running deploys are normal mid-cascade).
Operator-friendly: read-only, no credentials, safe to run any
time. Composes into the cascade goal's tail when
ike.cascade.waitForCentral is enabled.
Usage:
mvn ike:central-status mvn ike:central-status -Dike.central.sentinelDir=/custom/path mvn ike:central-status -Dike.central.failOnPending=true
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CentralStatusMojo
public CentralStatusMojo()Creates this goal instance.
-
-
Method Details
-
execute
public void execute()- Specified by:
executein interfaceorg.apache.maven.api.plugin.Mojo
-