]> source.dussan.org Git - archiva.git/commitdiff
fix MRM-1607 in dependency tree too
authorOlivier Lamy <olamy@apache.org>
Wed, 1 Aug 2012 18:39:34 +0000 (18:39 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 1 Aug 2012 18:39:34 +0000 (18:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1368186 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java

index 417788f59ed24e99964a20991b9da507bbc7db83..6067dd79fee10c6a8d8c13043f55109bae39d35c 100644 (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();
     }