From 5eb67a452fe62447d1dab1a76470218e9a132071 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Mon, 7 Mar 2005 05:02:31 +0000 Subject: [PATCH] add private key, passphrase until we have them in the user configuration git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163459 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/repository/RepositoryUtils.java | 2 ++ maven-model/maven.mdo | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/maven-core/src/main/java/org/apache/maven/repository/RepositoryUtils.java b/maven-core/src/main/java/org/apache/maven/repository/RepositoryUtils.java index 6f1ed11594..9d28947dd2 100644 --- a/maven-core/src/main/java/org/apache/maven/repository/RepositoryUtils.java +++ b/maven-core/src/main/java/org/apache/maven/repository/RepositoryUtils.java @@ -56,6 +56,8 @@ public class RepositoryUtils AuthenticationInfo authInfo = new AuthenticationInfo(); authInfo.setUserName( mavenRepository.getUsername() ); authInfo.setPassword( mavenRepository.getPassword() ); + authInfo.setPrivateKey( mavenRepository.getPrivateKey() ); + authInfo.setPassphrase( mavenRepository.getPassphrase() ); retValue.setAuthenticationInfo( authInfo ); } retValue.setUrl( mavenRepository.getUrl() ); diff --git a/maven-model/maven.mdo b/maven-model/maven.mdo index aa4cdfef50..5ae5a371af 100644 --- a/maven-model/maven.mdo +++ b/maven-model/maven.mdo @@ -1459,6 +1459,7 @@ ]]> String + username 4.0.0 @@ -1472,6 +1473,20 @@ The password to use when connecting to the repository. If omitted, none is used. String + + + privateKey + 4.0.0 + The private key to use when connecting to the repository (SSH only) + String + + + + passphrase + 4.0.0 + The passphrase for the private key to use when connecting to the repository (SSH only) + String +