mirror of https://github.com/apache/archiva.git
[MRM-1895] upgrade to wagon 2.8
This commit is contained in:
parent
01f9aad617
commit
73d92ab376
|
@ -33,6 +33,7 @@ import org.apache.archiva.configuration.WebappConfiguration;
|
|||
import org.apache.archiva.metadata.model.facets.AuditEvent;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.http.impl.conn.PoolingClientConnectionManager;
|
||||
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
|
||||
import org.apache.maven.wagon.providers.http.HttpWagon;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -51,7 +52,7 @@ public class DefaultArchivaAdministration
|
|||
implements ArchivaAdministration
|
||||
{
|
||||
|
||||
private PoolingClientConnectionManager poolingClientConnectionManager;
|
||||
private PoolingHttpClientConnectionManager poolingClientConnectionManager;
|
||||
|
||||
@PostConstruct
|
||||
public void initialize()
|
||||
|
@ -413,20 +414,20 @@ public class DefaultArchivaAdministration
|
|||
if ( networkConfiguration == null )
|
||||
{
|
||||
// back to default values
|
||||
HttpWagon.setUseClientManagerPooled( true );
|
||||
poolingClientConnectionManager = new PoolingClientConnectionManager();
|
||||
HttpWagon.setPersistentPool( true );
|
||||
poolingClientConnectionManager = new PoolingHttpClientConnectionManager();
|
||||
poolingClientConnectionManager.setDefaultMaxPerRoute( 30 );
|
||||
poolingClientConnectionManager.setMaxTotal( 30 );
|
||||
HttpWagon.setConnectionManagerPooled( poolingClientConnectionManager );
|
||||
HttpWagon.setPoolingHttpClientConnectionManager( poolingClientConnectionManager );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
HttpWagon.setUseClientManagerPooled( networkConfiguration.isUsePooling() );
|
||||
poolingClientConnectionManager = new PoolingClientConnectionManager();
|
||||
HttpWagon.setPersistentPool( networkConfiguration.isUsePooling() );
|
||||
poolingClientConnectionManager = new PoolingHttpClientConnectionManager();
|
||||
poolingClientConnectionManager.setDefaultMaxPerRoute( networkConfiguration.getMaxTotalPerHost() );
|
||||
poolingClientConnectionManager.setMaxTotal( networkConfiguration.getMaxTotal() );
|
||||
HttpWagon.setConnectionManagerPooled( poolingClientConnectionManager );
|
||||
HttpWagon.setPoolingHttpClientConnectionManager( poolingClientConnectionManager );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -63,7 +63,7 @@
|
|||
|
||||
<maven-model-converter.version>2.1</maven-model-converter.version>
|
||||
<maven.indexer.version>5.1.1</maven.indexer.version>
|
||||
<wagon.version>2.5</wagon.version>
|
||||
<wagon.version>2.9</wagon.version>
|
||||
<redback.version>2.4-SNAPSHOT</redback.version>
|
||||
<redback.cache.version>2.2</redback.cache.version>
|
||||
<redback.quartz.version>2.1</redback.quartz.version>
|
||||
|
|
Loading…
Reference in New Issue