You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ni...@planet.nl on 2008/02/14 09:55:00 UTC
RE: mvn site-deploy and modules
It seems the command executed has returned a non-succes code. What happens when you execute the command from the commandline, thus: /bin/sh -c 'ssh -o "BatchMode yes" user@server "chmod -Rf g+w,a+rX /path/to/htdocs/hudson"
Hth,
Nick Stolwijk
-----Original Message-----
From: Julien FOROT [mailto:julien.forot@bull.net]
Sent: Thu 2/14/2008 10:42
To: Maven Users List
Subject: mvn site-deploy and modules
Hi !
I want to deploy my site on a remote server. I use scpexe for that. The
global project is well upload, but directories corresponding to modules
are not created, and I get this trace :
Executing command: /bin/sh -c 'ssh -o "BatchMode yes" user@server "chmod
-Rf g+w,a+rX /path/to/htdocs/hudson"'
scpexe://server/path/to/htdocs/hudson - Session: Disconnecting
scpexe://server/path/to/htdocs/hudson - Session: Disconnected
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error uploading site
Embedded error: Exit code 1 -
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
uploading site
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:216)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 1 -
at
org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:145)
at
org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:326)
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:191)
... 18 more
I don't understand well what happens and wich command failed.. Does
someone can help me ?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn site-deploy and modules
Posted by Julien FOROT <ju...@bull.net>.
Well I solved the problem using scp instead of scpexe..
Julien FOROT a écrit :
> The command line works well on command line..
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mvn site-deploy and modules
Posted by Julien FOROT <ju...@bull.net>.
The command line works well on command line..
nicklist@planet.nl a écrit :
> It seems the command executed has returned a non-succes code. What happens when you execute the command from the commandline, thus: /bin/sh -c 'ssh -o "BatchMode yes" user@server "chmod -Rf g+w,a+rX /path/to/htdocs/hudson"
>
> Hth,
> Nick Stolwijk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org