Skip to content

Commit e0b01fb

Browse files
authored
[MNG-8210] Fix broken inference of version when using -f option (#1720)
1 parent bb99857 commit e0b01fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private void doLoadFullReactor() {
152152
ModelBuilderRequest.build(request, ModelSource.fromPath(pom));
153153
Model rawModel = defaultModelBuilder.readFileModel(gaBuildingRequest, problems);
154154
List<String> subprojects = rawModel.getSubprojects();
155-
if (subprojects == null) {
155+
if (subprojects.isEmpty()) {
156156
subprojects = rawModel.getModules();
157157
}
158158
for (String subproject : subprojects) {

0 commit comments

Comments
 (0)