settings.setBaseDir(basedir);
settings.setDefaultUseOrigin(true);
File cacheDir = new File(basedir, ".cache");
ResolutionCacheManager resolutionCacheManager = new DefaultResolutionCacheManager(cacheDir);
settings.setResolutionCacheManager(resolutionCacheManager);
RepositoryCacheManager repositoryCacheManager = new DefaultRepositoryCacheManager("default-cache", settings,
cacheDir);
settings.setDefaultRepositoryCacheManager(repositoryCacheManager);