mirror of https://github.com/apache/maven.git
[MNG-7110] Different behavior of extensions
restore configuration of importRequest
This commit is contained in:
parent
ad24f599ce
commit
aa90370ff4
|
@ -1414,11 +1414,15 @@ public class DefaultModelBuilder
|
|||
final ModelBuildingResult importResult;
|
||||
try
|
||||
{
|
||||
ModelBuildingRequest importRequest = new DefaultModelBuildingRequest( request )
|
||||
.setTwoPhaseBuilding( false )
|
||||
.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL )
|
||||
.setModelSource( importSource )
|
||||
.setModelResolver( modelResolver.newCopy() );
|
||||
ModelBuildingRequest importRequest = new DefaultModelBuildingRequest();
|
||||
importRequest.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL );
|
||||
importRequest.setModelCache( request.getModelCache() );
|
||||
importRequest.setSystemProperties( request.getSystemProperties() );
|
||||
importRequest.setUserProperties( request.getUserProperties() );
|
||||
importRequest.setLocationTracking( request.isLocationTracking() );
|
||||
|
||||
importRequest.setModelSource( importSource );
|
||||
importRequest.setModelResolver( modelResolver.newCopy() );
|
||||
|
||||
importResult = build( importRequest, importIds );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue