[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
This commit is contained in:
Sascha Vogt 2014-04-23 15:37:56 +02:00 committed by Olivier Lamy
parent 588f40d0d3
commit 6790e2a82f
1 changed files with 2 additions and 1 deletions

View File

@ -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