Repository navigation
Keep the progress number of a project that is built again (fix #10291) - #13577
Merged
gnodet merged 1 commit intoOct 19, 2026
Merged
Conversation
…#10291) An aggregator goal on the command line builds a project once more after the reactor, and the progress counter took it for one more project, so that the output went past the total, as in [13/12]. A project built again now shows the number it was given the first time.
gnodet
pushed a commit
to arturobernalg/maven
that referenced
this pull request
Oct 16, 2026
…#10291) An aggregator goal on the command line builds a project once more after the reactor, and the progress counter took it for one more project, so that the output went past the total, as in [13/12]. A project built again now shows the number it was given the first time. Backport of apache#13577 to maven-4.0.x.
gnodet
pushed a commit
that referenced
this pull request
Oct 19, 2026
#13578) An aggregator goal on the command line builds a project once more after the reactor, and the progress counter took it for one more project, so that the output went past the total, as in [13/12]. A project built again now shows the number it was given the first time. Backport of #13577 to maven-4.0.x.
gnodet
pushed a commit
that referenced
this pull request
Oct 19, 2026
#13579) An aggregator goal on the command line builds a project once more after the reactor, and the progress counter took it for one more project, so that the output went past the total, as in [13/12]. A project built again now shows the number it was given the first time. Backport of #13577 to maven-3.10.x.
2 tasks done
gnodet
pushed a commit
that referenced
this pull request
Oct 19, 2026
…built again (#13635) Backport of #13577 (fix #10291), already backported to maven-4.0.x (#13578) and maven-3.10.x (#13579) but missing on maven-3.9.x, which has the same ExecutionEventLogger counter logic. When an aggregator goal on the command line builds the first project again after the reactor finished (for instance "mvn package artifact:describe"), the project progress counter kept incrementing past the total project count, printing a confusing "[4/3]" instead of repeating "[1/3]". Remember the progress number already assigned to each project and reuse it instead of handing out a new one every time projectStarted fires for the same project. Fixes #10291
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
mvn package artifact:describe-build-outputon a three module project prints[1/3],[2/3],[3/3]and then[4/3]. The aggregator goal on the command line builds the first project once more after the reactor, and the progress counter ofExecutionEventLoggertook it for one more project (#10291). I could reproduce it on 3.9.16 and on current master.How
ExecutionEventLoggerremembers the number it gave to each project, and a project that is built again shows that number, so the repeated run of the first module is[1/3]. This matches the report, which describes it as the first module where an aggregator goal has to run. The same change is in the copy of the logger incompat/maven-embedder.Tests
testMultiModuleProjectBuiltAgainKeepsItsNumberis added to bothExecutionEventLoggerTestclasses and fails inmaven-cliwithout the change.maven-cliandmaven-embedderpass and spotless is clean. I did not run the integration tests.To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following: