fix MRM-1607 in dependency tree too

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1368186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-08-01 18:39:34 +00:00
parent 146f60c77a
commit 8cfed27b68
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,8 @@ public class DefaultDependencyTreeBuilder
req.setModelSource( modelResolver.resolveModel( groupId, artifactId, version ) );
req.setModelResolver( modelResolver );
req.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL );
//MRM-1607. olamy this will resolve jdk profiles on the current running archiva jvm
req.setSystemProperties( System.getProperties() );
return builder.build( req ).getEffectiveModel();
}