Skip to content
Permalink
Browse files

Merge branch 'patch-1' of https://github.com/fabdouglas/repository-co…

…nnector-plugin into fabdouglas-patch-1 [FIXED JENKINS-29166]
  • Loading branch information...
imod committed Sep 10, 2015
2 parents 5b6c671 + 48d44d3 commit 995d30564b9dcf8f6a9354e0d15277a8f24907ce
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java
@@ -74,9 +74,9 @@
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) {
@@ -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;
}

0 comments on commit 995d305

Please sign in to comment.
You can’t perform that action at this time.