mirror of https://github.com/apache/maven.git
[MNG-8210] Fix broken inference of version when using -f option (#1720)
This commit is contained in:
parent
bb99857f34
commit
e0b01fb5a4
|
@ -152,7 +152,7 @@ class DefaultModelTransformerContextBuilder implements ModelTransformerContextBu
|
|||
ModelBuilderRequest.build(request, ModelSource.fromPath(pom));
|
||||
Model rawModel = defaultModelBuilder.readFileModel(gaBuildingRequest, problems);
|
||||
List<String> subprojects = rawModel.getSubprojects();
|
||||
if (subprojects == null) {
|
||||
if (subprojects.isEmpty()) {
|
||||
subprojects = rawModel.getModules();
|
||||
}
|
||||
for (String subproject : subprojects) {
|
||||
|
|
Loading…
Reference in New Issue