Class LocalPhase

java.lang.Object
network.ike.plugin.release.local.LocalPhase

public final class LocalPhase extends Object
The local-only release phase — B13 through B19 of the ReleaseDraftMojo block audit:
  1. B13 — cut release/<version> branch from main
  2. B14 — replace project-version refs, scan for surviving SNAPSHOTs
  3. B15 — first mvn clean install (Maven 4 consumer POM flatten + local install)
  4. B16 — pre-flight site build (catches javadoc errors before tag)
  5. B17 — release commit on release/<version>
  6. B18 — git tag v<version> — the irreversibility boundary
  7. B19a — restore ${project.version} references, restore-commit
  8. B19b — merge release/<version> to main
  9. B19c — post-release bump to next -SNAPSHOT, install, commit, delete release branch

Everything in this phase is local and reversible — the moment B18 runs, the release tag is in place, but nothing externally visible has happened yet. External deploys run from the tagged commit inside a WorktreeGuard (see ReleaseDraftMojo).

Carved out of ReleaseDraftMojo.runGoal() during the Phase 4 Commit 4 (IKE-Network/ike-issues#489).

  • Constructor Details

    • LocalPhase

      public LocalPhase(ReleaseContext ctx)
      Creates a new local phase bound to the given context.
      Parameters:
      ctx - the per-invocation release context
  • Method Details

    • execute

      public LocalOutcome execute(LocalInput input) throws org.apache.maven.api.plugin.MojoException
      Executes the local release phase.

      On resume (input.resuming() true), branch creation and version-setting (B13, B14) are skipped — the previous attempt left the release/<version> branch and the version-mutated POMs in place. The remaining steps (install, site, commit, tag, restore, merge, post-bump) run as usual.

      Parameters:
      input - the prep-stage outputs needed for the local phase
      Returns:
      a LocalOutcome summarizing which sub-steps ran
      Throws:
      org.apache.maven.api.plugin.MojoException - on any subprocess failure or surviving SNAPSHOT version