in wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java [174:210]
public void connect(
Repository repository, AuthenticationInfo authenticationInfo, ProxyInfoProvider proxyInfoProvider)
throws ConnectionException, AuthenticationException {
if (repository == null) {
throw new NullPointerException("repository cannot be null");
}
if (permissionsOverride != null) {
repository.setPermissions(permissionsOverride);
}
this.repository = repository;
if (authenticationInfo == null) {
authenticationInfo = new AuthenticationInfo();
}
if (authenticationInfo.getUserName() == null) {
// Get user/pass that were encoded in the URL.
if (repository.getUsername() != null) {
authenticationInfo.setUserName(repository.getUsername());
if (repository.getPassword() != null && authenticationInfo.getPassword() == null) {
authenticationInfo.setPassword(repository.getPassword());
}
}
}
this.authenticationInfo = authenticationInfo;
this.proxyInfoProvider = proxyInfoProvider;
fireSessionOpening();
openConnection();
fireSessionOpened();
}