arturobernalg opened a new pull request, #14161:
URL: https://github.com/apache/maven/pull/14161

   Fixes #14123
   
   With `-b concurrent`, invoking an aggregator goal without a lifecycle phase 
in a multi-module build fails with a `NullPointerException` in 
`BuildPlan.addStep()`. An aggregating task segment only plans the top level 
project, but the plan, setup and teardown steps are then added to every reactor 
project.
   
   `addStep()` now creates the project entry when it is missing. Added a 
two-module test to `BuildPlanExecutorTest` that fails with the same NPE without 
the change. The `maven-core` tests pass. On a small reactor, 
`help:active-profiles` fails with the NPE on master and succeeds with this 
change; I also ran `source:aggregate` with the change, which succeeds.
   
   ---
   
   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:
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [x] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to