www-repository mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Sanchez <car...@apache.org>
Subject Re: upload of ant's 1.8.0 artifacts to maven
Date Thu, 11 Feb 2010 22:34:19 GMT
maybe your private key has a password?
you could use wagon-ssh-external that will call your command line scp
instead of using a java implementation
and btw the latest version is 1.0-beta-6

On Thu, Feb 11, 2010 at 2:20 PM, Antoine Levy Lambert <antoine@gmx.de> wrote:
> Carlos Sanchez wrote:
>>
>>  You can use the Maven Ant tasks (better)
>
> Hello Carlos,
>
> I just wrote this mini-build file
>
> <project name="publishit"
> xmlns:artifact="antlib:org.apache.maven.artifact.ant">
> <property name="repository.username" value="antoine"/>
>
>  <artifact:pom id="mypom"
> file="java-repository/org.apache.ant/poms/ant-parent-1.8.0.pom" />
>
>  <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-2"/>
>
>  <artifact:deploy
> file="java-repository/org.apache.ant/poms/ant-parent-1.8.0.pom">
>   <remoteRepository
> url="scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository">
>     <authentication username="${repository.username}"
> privateKey="${user.home}/.ssh/id_rsa"/>
>   </remoteRepository>
>   <pom refid="mypom"/>
>  </artifact:deploy>
>
> </project>
>
> I am getting this error :
>
> bash-3.2$ ant -lib ~/opt/maven-ant-tasks-2.1.0/maven-ant-tasks-2.1.0.jar
> Buildfile: build.xml
> [artifact:install-provider] Installing provider:
> org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
> [artifact:deploy] Deploying to
> scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
> [artifact:deploy] An error has occurred while processing the Maven artifact
> tasks.
> [artifact:deploy]  Diagnosis:
> [artifact:deploy]
> [artifact:deploy] Error deploying artifact 'org.apache.ant:ant-parent:pom':
> Error deploying artifact: Authentication failed: Cannot connect. Reason:
> Algorithm negotiation fail
>
> BUILD FAILED
> /Users/antoine/dev/asf/releasework/build.xml:8: Error deploying artifact
> 'org.apache.ant:ant-parent:pom': Error deploying artifact: Authentication
> failed: Cannot connect. Reason: Algorithm negotiation fail
>
> Does one have to have a dsa key and not a rsa key ?
>
> I will proceed with the file system solution though.
>
> Regards,
>
> Antoine
>
>
>

Mime
View raw message