Skip to content

Commit

Permalink
[MNG-7679] [REGRESSION] Build fails when executing a single mojo with…
Browse files Browse the repository at this point in the history
…out a POM

This closes #1004
  • Loading branch information
cstamas authored and michael-o committed Feb 20, 2023
1 parent 43dffb9 commit 83a5c56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public LifecycleDependencyResolver( ProjectDependenciesResolver projectDependenc

public static List<MavenProject> getProjects( MavenProject project, MavenSession session, boolean aggregator )
{
if ( aggregator )
if ( aggregator && project.getCollectedProjects() != null )
{
List<MavenProject> projects = new ArrayList<>();
addProjectAndSubModules( projects, project );
Expand Down

0 comments on commit 83a5c56

Please sign in to comment.