From 6790e2a82fbf43eb407acfb8430f323f6a004bcd Mon Sep 17 00:00:00 2001 From: Sascha Vogt Date: Wed, 23 Apr 2014 15:37:56 +0200 Subject: [PATCH] [MRM-1833] Nullpointer when browsing artifacts which have dependencies with scope "import" Use the full constructor to create the clone, as resolveModel expects remoteRepositories to be not null --- .../repository/storage/maven2/RepositoryModelResolver.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java index 0113513fb..0cb92646a 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java @@ -212,7 +212,8 @@ public class RepositoryModelResolver @Override public ModelResolver newCopy() { - return new RepositoryModelResolver( basedir, pathTranslator ); + return new RepositoryModelResolver( managedRepository, pathTranslator, wagonFactory, remoteRepositories, + networkProxyMap, targetRepository ); } // FIXME: we need to do some refactoring, we cannot re-use the proxy components of archiva-proxy in maven2-repository -- 2.39.5