[MNG-8210] Fix broken inference of version when using -f option (#1720)

This commit is contained in:
Guillaume Nodet 2024-09-11 16:57:21 +02:00 committed by GitHub
parent bb99857f34
commit e0b01fb5a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {