maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [10/48] maven-resolver git commit: Accounted for refactoring of authentication bits in aether-api
Date Fri, 26 May 2017 21:15:46 GMT
Accounted for refactoring of authentication bits in aether-api


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

Branch: refs/heads/demos
Commit: 40100e3dca17a2a3c4c7228f2bfc9f1657db8f65
Parents: 119d55c
Author: Benjamin Bentmann <bentmann@sonatype.com>
Authored: Mon Sep 17 00:22:57 2012 +0200
Committer: Benjamin Bentmann <bentmann@sonatype.com>
Committed: Mon Sep 17 00:22:57 2012 +0200

----------------------------------------------------------------------
 .../src/main/java/org/eclipse/aether/examples/aether/Aether.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-resolver/blob/40100e3d/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/aether/Aether.java
----------------------------------------------------------------------
diff --git a/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/aether/Aether.java
b/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/aether/Aether.java
index 901ad9f..c1f3f4f 100644
--- a/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/aether/Aether.java
+++ b/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/aether/Aether.java
@@ -33,6 +33,7 @@ import org.eclipse.aether.repository.RemoteRepository;
 import org.eclipse.aether.resolution.DependencyRequest;
 import org.eclipse.aether.resolution.DependencyResolutionException;
 import org.eclipse.aether.util.graph.visitor.PreorderNodeListGenerator;
+import org.eclipse.aether.util.repository.AuthenticationBuilder;
 
 public class Aether
 {
@@ -99,7 +100,7 @@ public class Aether
         RepositorySystemSession session = newSession();
 
         RemoteRepository nexus = new RemoteRepository( "nexus", "default", remoteRepository
);
-        Authentication authentication = new Authentication( "admin", "admin123" );
+        Authentication authentication = new AuthenticationBuilder().username( "admin" ).password(
"admin123" ).build();
         nexus.setAuthentication( authentication );
 
         DeployRequest deployRequest = new DeployRequest();


Mime
View raw message