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

This closes #1004
This commit is contained in:
Tamas Cservenak 2023-02-20 14:21:15 +01:00 committed by Michael Osipov
parent 67346705f0
commit 74f1dac9fb
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);