From 8cfed27b68a48301dfe77957a971db7f8bca5030 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 1 Aug 2012 18:39:34 +0000 Subject: [PATCH] fix MRM-1607 in dependency tree too git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1368186 13f79535-47bb-0310-9956-ffa450edef68 --- .../dependency/tree/maven2/DefaultDependencyTreeBuilder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java index 417788f59..6067dd79f 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java @@ -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(); }