maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject [12/50] git commit: Fixed auth retrieval
Date Mon, 18 Mar 2013 21:47:28 GMT
Fixed auth retrieval


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/3df76ee2
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/3df76ee2
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/3df76ee2

Branch: refs/heads/master
Commit: 3df76ee227a93b5deeb184d1537f1e6f26c973b0
Parents: 42536ce
Author: Benjamin Bentmann <bentmann@apache.org>
Authored: Sun Sep 30 21:09:51 2012 +0200
Committer: Benjamin Bentmann <bentmann@apache.org>
Committed: Sun Sep 30 21:09:51 2012 +0200

----------------------------------------------------------------------
 .../repository/legacy/LegacyRepositorySystem.java  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/3df76ee2/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
----------------------------------------------------------------------
diff --git a/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
b/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
index 591debc..6dd84db 100644
--- a/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
+++ b/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
@@ -588,6 +588,7 @@ public class LegacyRepositorySystem
                 org.eclipse.aether.repository.Authentication auth = selector.getAuthentication(
repo );
                 if ( auth != null )
                 {
+                    repo = new RemoteRepository.Builder( repo ).setAuthentication( auth ).build();
                     AuthenticationContext authCtx = AuthenticationContext.forRepository(
session, repo );
                     Authentication result =
                         new Authentication( authCtx.get( AuthenticationContext.USERNAME ),
@@ -703,6 +704,7 @@ public class LegacyRepositorySystem
                     p.setPort( proxy.getPort() );
                     if ( proxy.getAuthentication() != null )
                     {
+                        repo = new RemoteRepository.Builder( repo ).setProxy( proxy ).build();
                         AuthenticationContext authCtx = AuthenticationContext.forProxy( session,
repo );
                         p.setUserName( authCtx.get( AuthenticationContext.USERNAME ) );
                         p.setPassword( authCtx.get( AuthenticationContext.PASSWORD ) );


Mime
View raw message