rfscholte commented on a change in pull request #391:
URL: https://github.com/apache/maven/pull/391#discussion_r541998917
##########
File path:
maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java
##########
@@ -505,32 +483,17 @@ private boolean build( List<ProjectBuildingResult>
results, List<InterimResult>
noErrors = false;
}
- Model model = result.getEffectiveModel();
+ Model model = result.getFileModel().clone();
- poolBuilder.put( model.getPomFile().toPath(), result.getRawModel() );
+ poolBuilder.put( model.getPomFile().toPath(), model );
- try
- {
- // first pass: build without building parent.
- initProject( project, projectIndex, false, result, new HashMap<>(
0 ), config.request );
- }
- catch ( InvalidArtifactRTException iarte )
- {
- result.getProblems().add( new DefaultModelProblem( null,
ModelProblem.Severity.ERROR, null, model, -1, -1,
- iarte ) );
- }
-
- projectIndex.put( result.getModelIds().get( 0 ), project );
-
InterimResult interimResult = new InterimResult( pomFile, request,
result, listener, isRoot );
interimResults.add( interimResult );
-
- if ( recursive && !model.getModules().isEmpty() )
+
Review comment:
fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]