mirror of https://github.com/apache/maven.git
[MNG-7679] [REGRESSION] Build fails when executing a single mojo without a POM
This closes #993
This commit is contained in:
parent
e2a8db3f02
commit
1d9dd4a364
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue