public Authentication getAuthentication( RemoteRepository repository ) { Authentication auth = repository.getAuthentication(); if ( auth != null ) { return auth; } return selector.getAuthentication( repository ); }
r.setAuthentication( authSelector.getAuthentication( r ) ); r.setProxy( proxySelector.getProxy( r ) );
Authentication auth = authSelector.getAuthentication( repository ); if ( auth != null )
Authentication auth = authSelector.getAuthentication( repository ); if ( auth != null )
private RemoteRepository getRemoteRepository( RepositorySystemSession session, ArtifactRepository remoteRepository ) throws ArtifactDeployerException { // CHECKSTYLE_OFF: LineLength RemoteRepository aetherRepo = (RemoteRepository) Invoker.invoke( RepositoryUtils.class, "toRepo", org.apache.maven.artifact.repository.ArtifactRepository.class, remoteRepository ); // CHECKSTYLE_ON: LineLength if ( aetherRepo.getAuthentication() == null ) { aetherRepo.setAuthentication( session.getAuthenticationSelector().getAuthentication( aetherRepo ) ); } if ( aetherRepo.getProxy() == null ) { aetherRepo.setProxy( session.getProxySelector().getProxy( aetherRepo ) ); } return aetherRepo; } }