maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Glaser (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MSITE-374) Unable to upload to the site using sftp
Date Mon, 14 Mar 2011 10:34:22 GMT

    [ http://jira.codehaus.org/browse/MSITE-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260005#action_260005
] 

Thorsten Glaser commented on MSITE-374:
---------------------------------------

+1, high urgency

We can deploy to our server with sftp the build result but not the documentation. In the Jenkins
build logs it shows that it hangs at this point:

[JENKINS] Archiving site from /var/lib/hudson/jobs/(jobname)/workspace/target/site to /var/lib/hudson/jobs/(jobname)/site
[INFO] [site:deploy]
Using private key: /var/lib/hudson/.ssh/id_rsa
sftp://(servername)/var/www/maven_repo/sites - Session: Opened  
Executing command: mkdir -p /var/www/maven_repo/sites/.

Then nothing. On the server side, I just see an open PAM session with no activity. I suspect
the mkdir call may be faulty, SFTP doesnÂ’t allow shell commands.

> Unable to upload to the site using sftp
> ---------------------------------------
>
>                 Key: MSITE-374
>                 URL: http://jira.codehaus.org/browse/MSITE-374
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 2.0-beta-7
>         Environment: Windows visa professionnal french
> eclipse plugin
>            Reporter: Jean-Philippe Gravel
>
> Unable to connect to remote repository using sftp or scp. Conecting to shell.sourceforge.net.
Tried to connect using Putty before the using mvn site:deploy without success. Tried to connect
using ssh in Cygwin and then copied the file "known_hosts" to "C:\Users\jpgravel\.ssh" without
success too.
> * Note that my private key have been exported to the OpenSSH format using Putty.
> The following error occurs:
> Using private key: C:\Users\jpgravel\.ssh\sourceforge_priv
> sftp://web.sourceforge.net/home/groups/b/bt/btb/htdocs - Session: Disconnecting  
> sftp://web.sourceforge.net/home/groups/b/bt/btb/htdocs - Session: Disconnected
> [ERROR] 
> The following mojo encountered an error while executing:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-site-plugin
> Version: 2.0-beta-7
> Mojo: deploy
> brought in via: Direct invocation
> While building project:
> Group-Id: net.sf.btb
> Artifact-Id: bridge
> Version: 1.1.0
> From file: C:\Users\jpgravel\workspace\java\BridgeToBabylon\pom.xml
> Reason: Error uploading site
> When run wih "-e" I get the following exception:
> org.apache.maven.wagon.providers.ssh.knownhost.UnknownHostException: The host was not
known and was not accepted by the configuration: web.sourceforge.net
> 	at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnection(AbstractJschWagon.java:178)
> 	at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
> 	at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
> 	at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
> 	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
> Caused by: com.jcraft.jsch.JSchException: reject HostKey: web.sourceforge.net
> 	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.jsch.AbstractJschWagon.openConnection(AbstractJschWagon.java:158)
> 	... 17 more
> Error stacktrace:
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin
manager executing goal 'org.apache.maven.plugins:maven-site-plugin:2.0-beta-7:deploy': Mojo
execution failed.
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
> 	at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
> 	at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
> 	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution failed.
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:601)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
> 	... 12 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site
> 	at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:215)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
> 	... 13 more
> Caused by: org.apache.maven.wagon.providers.ssh.knownhost.UnknownHostException: The host
was not known and was not accepted by the configuration: web.sourceforge.net
> 	at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnection(AbstractJschWagon.java:178)
> 	at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
> 	at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
> 	at org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184)
> 	... 14 more
> Caused by: com.jcraft.jsch.JSchException: reject HostKey: web.sourceforge.net
> 	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.jsch.AbstractJschWagon.openConnection(AbstractJschWagon.java:158)
> 	... 17 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message