wagon.addSessionListener(debug);
wagon.addTransferListener(debug);
}
wagon.setTimeout(1000);
Settings settings = mavenSettingsBuilder.buildSettings();
ProxyInfo proxyInfo = null;
if (settings != null && settings.getActiveProxy() != null) {
Proxy settingsProxy = settings.getActiveProxy();
proxyInfo = new ProxyInfo();
proxyInfo.setHost(settingsProxy.getHost());
proxyInfo.setType(settingsProxy.getProtocol());
proxyInfo.setPort(settingsProxy.getPort());
proxyInfo.setNonProxyHosts(settingsProxy.getNonProxyHosts());
proxyInfo.setUserName(settingsProxy.getUsername());
proxyInfo.setPassword(settingsProxy.getPassword());
}
if (proxyInfo != null) {
wagon.connect(repository,
wagonManager.getAuthenticationInfo(repository.getId()),