[MNG-7679] [REGRESSION] Build fails when executing a single mojo without a POM

This closes #993
This commit is contained in:
Guillaume Nodet 2023-02-09 09:04:29 +01:00 committed by Michael Osipov
parent e2a8db3f02
commit 1d9dd4a364
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class LifecycleDependencyResolver {
}
public static List<MavenProject> getProjects(MavenProject project, MavenSession session, boolean aggregator) {
if (aggregator) {
if (aggregator && project.getCollectedProjects() != null) {
return getProjectAndSubModules(project).collect(Collectors.toList());
} else {
return Collections.singletonList(project);