Skip to content

Issue #14176 Reuse completed prerequisites in public fork planning - #14231

Open
ihabyehia-dev wants to merge 1 commit into
apache:masterfrom
ihabyehia-dev:fix/14176-report-fork-prerequisites
Open

ihabyehia-dev wants to merge 1 commit into
apache:masterfrom
ihabyehia-dev:fix/14176-report-fork-prerequisites

Conversation

@ihabyehia-dev

@ihabyehia-dev ihabyehia-dev commented Dec 3, 2026 •

Copy link
Copy Markdown

Problem

External callers of LifecycleExecutor.calculateForkedExecutions may unnecessarily repeat prerequisite goals that have already completed within the same Maven build session.

This results in redundant work and increased build times when generating reports.

Solution

  • Track successfully completed mojo executions per project instance.
  • Reuse completed prerequisites when their configuration and execution order are compatible.
  • Preserve pending and differently configured executions.
  • Isolate execution history for cloned fork projects.
  • Maintain the existing public API.

Testing

Added unit and integration regression tests covering:

  • Reuse of completed prerequisites.
  • Project and session isolation.
  • Changes in execution order and configuration.
  • Clean lifecycle invalidation.
  • Maven Site and Surefire Report execution.
  • Standalone site builds.

Addresses #14176.


To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0), check one of the following:

Track successful mojo executions per project instance. Keep pending work and prerequisites whose order or configuration differs, and isolate the history of cloned fork projects.

Cover report forks through the Site Plugin, including the differently configured Surefire Report fork and a standalone site build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant