if (!repoLocalFile.canWrite()) {
throw new Exception("Can't write to " + repoLocalFile);
}
ArtifactResolver resolver;
if (online) {
OnlineArtifactDownloader downloader = new OnlineArtifactDownloader(localRepository);
resolver = downloader;
if (settings.getActiveProxy() != null) {
Proxy proxy = settings.getActiveProxy();