summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-08-01 18:39:34 +0000
committerOlivier Lamy <olamy@apache.org>2012-08-01 18:39:34 +0000
commit8cfed27b68a48301dfe77957a971db7f8bca5030 (patch)
tree41dab6a7320e97ef6fa7ebdcc8e4b66c2be28a67 /archiva-modules
parent146f60c77a8059481a2228fdba9be2dee610e284 (diff)
downloadarchiva-8cfed27b68a48301dfe77957a971db7f8bca5030.tar.gz
archiva-8cfed27b68a48301dfe77957a971db7f8bca5030.zip
fix MRM-1607 in dependency tree too
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1368186 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java2
1 files changed, 2 insertions, 0 deletions
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();
}