Class LocalPhase
java.lang.Object
network.ike.plugin.release.local.LocalPhase
The local-only release phase — B13 through B19 of the
ReleaseDraftMojo block audit:
- B13 — cut
release/<version>branch from main - B14 — replace project-version refs, scan for surviving SNAPSHOTs
- B15 — first
mvn clean install(Maven 4 consumer POM flatten + local install) - B16 — pre-flight site build (catches javadoc errors before tag)
- B17 — release commit on
release/<version> - B18 —
git tag v<version>— the irreversibility boundary - B19a — restore
${project.version}references, restore-commit - B19b — merge
release/<version>tomain - 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 Summary
ConstructorsConstructorDescriptionLocalPhase(ReleaseContext ctx) Creates a new local phase bound to the given context. -
Method Summary
-
Constructor Details
-
LocalPhase
Creates a new local phase bound to the given context.- Parameters:
ctx- the per-invocation release context
-
-
Method Details
-
execute
Executes the local release phase.On resume (
input.resuming()true), branch creation and version-setting (B13, B14) are skipped — the previous attempt left therelease/<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
LocalOutcomesummarizing which sub-steps ran - Throws:
org.apache.maven.api.plugin.MojoException- on any subprocess failure or surviving SNAPSHOT version
-