You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2016/05/07 13:24:35 UTC
[10/36] maven-aether git commit: Accounted for refactoring of
authentication bits in aether-api
Accounted for refactoring of authentication bits in aether-api
Project: http://git-wip-us.apache.org/repos/asf/maven-aether/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-aether/commit/40100e3d
Tree: http://git-wip-us.apache.org/repos/asf/maven-aether/tree/40100e3d
Diff: http://git-wip-us.apache.org/repos/asf/maven-aether/diff/40100e3d
Branch: refs/heads/demo
Commit: 40100e3dca17a2a3c4c7228f2bfc9f1657db8f65
Parents: 119d55c
Author: Benjamin Bentmann <be...@sonatype.com>
Authored: Mon Sep 17 00:22:57 2012 +0200
Committer: Benjamin Bentmann <be...@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-aether/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();