maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Beland" <dcende...@gmail.com>
Subject [m1.1] Unable to deploy to remote repository
Date Tue, 25 Jul 2006 14:20:57 GMT
Hi,


I have been using maven 1.0.2 for more than a year now. I use it to make all
of our releases on our internal repository.
I have setup maven-proxy to access that repository and eveything works fine.

In my build.properties file I have the following settings:

maven.repo.RF1=sftp://gdps
maven.repo.RF1.username=cvs
maven.repo.RF1.password=***********
maven.repo.RF1.directory=/cvs/maven/repo-local



I tried to migrate to maven 1.1-beta3-SNAPSHOT (20060723) and I am unable to
deploy something to the remote repository.
(I tried jar:deploy, plugin:repository-deploy, etc all with the same
exception).

My configuration seems ok based on the maven-artifact-plugin doc.
Looking on google I saw that we need to put the trust attribute to true, (if
it is the ant task that is used by maven), but didn't find any way to
configure it.

I absolutely have to use sftp or scp.


Here is the complete exception trace:

Failed to deploy to: RF1 Reason:
org.apache.maven.wagon.authentication.AuthenticationException: Cannot
connect. Reason: reject HostKey: gdps
org.apache.maven.wagon.authentication.AuthenticationException: Cannot
connect. Reason: reject HostKey: gdps
        at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:232)
        at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java
:143)
        at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java
:106)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(
DefaultArtifactDeployer.java:372)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(
DefaultArtifactDeployer.java:320)
        at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy(
DefaultArtifactDeployer.java:119)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy
(DefaultArtifactDeployer.java:90)
        at org.apache.maven.artifact.deployer.DeployBean.deploy(
DeployBean.java:155)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(
DynamicBeanTag.java:180)
        at org.apache.commons.jelly.impl.StaticTagScript.run(
StaticTagScript.java:102)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
        at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java
:79)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java
:95)
        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:82)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:115)
        at org.apache.maven.werkz.Goal.fire(Goal.java:647)
        at org.apache.maven.werkz.Goal.attain(Goal.java:582)
        at org.apache.maven.plugin.PluginManager.attainGoals(
PluginManager.java:709)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
        at org.apache.maven.cli.App.doMain(App.java:546)
        at org.apache.maven.cli.App.main(App.java:1359)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: com.jcraft.jsch.JSchException: reject HostKey: gdps
        at com.jcraft.jsch.Session.checkHost(Unknown Source)
        at com.jcraft.jsch.Session.connect(Unknown Source)
        at com.jcraft.jsch.Session.connect(Unknown Source)
        at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection(
AbstractSshWagon.java:221)
        ... 31 more

Thanks,
Daniel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message