return instantiator.newInstance(DefaultFlatDirArtifactRepository.class, fileResolver, transportFactory,
locallyAvailableResourceFinder, resolverStrategy, artifactFileStore);
}
public MavenArtifactRepository createMavenLocalRepository() {
MavenArtifactRepository mavenRepository = instantiator.newInstance(DefaultMavenLocalArtifactRepository.class, fileResolver, createPasswordCredentials(), transportFactory,
locallyAvailableResourceFinder, artifactFileStore);
final File localMavenRepository = localMavenRepositoryLocator.getLocalMavenRepository();
mavenRepository.setUrl(localMavenRepository);
return mavenRepository;
}