Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nnector-plugin into fabdouglas-patch-1 [FIXED JENKINS-29166]
  • Loading branch information
imod committed Sep 10, 2015
2 parents 5b6c671 + 48d44d3 commit 995d305
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -74,9 +74,9 @@ public class Aether {
public String releaseChecksumPolicy;

public Aether(Collection<Repository> remoteRepositories, File localRepository) {
this(remoteRepositories, localRepository, null, false, RepositoryPolicy.UPDATE_POLICY_NEVER,
RepositoryPolicy.CHECKSUM_POLICY_IGNORE, RepositoryPolicy.UPDATE_POLICY_NEVER, RepositoryPolicy.CHECKSUM_POLICY_IGNORE);
}
this(remoteRepositories, localRepository, null, false, RepositoryPolicy.UPDATE_POLICY_ALWAYS,
RepositoryPolicy.CHECKSUM_POLICY_IGNORE, RepositoryPolicy.UPDATE_POLICY_ALWAYS, RepositoryPolicy.CHECKSUM_POLICY_IGNORE);
}

public Aether(Collection<Repository> remoteRepositories, File localRepository, PrintStream logger, boolean extendedLogging,
String snapshotUpdatePolicy, String snapshotChecksumPolicy, String releaseUpdatePolicy, String releaseChecksumPolicy) {
Expand Down Expand Up @@ -184,6 +184,10 @@ private RepositorySystemSession newSession() {
session.setTransferListener(new ConsoleTransferListener(logger));
session.setRepositoryListener(new ConsoleRepositoryListener(logger));
}

// Disable caching
session.setConfigProperty("aether.versionResolver.noCache", Boolean.TRUE);

addProxySelectorIfNecessary(session);
return session;
}
Expand Down

0 comments on commit 995d305

Please sign in to comment.