Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3, 2.4, 3.0, 3.1, 3.2
-
None
-
None
-
Windows 7, Java 5, Maven 2.2.1, Maven Site Plugin 3.2
Description
The following exception occurs with all maven site plugin versions greater than 2.2 during site:deploy.
This is the stacktrace of version 3.2
$ mvn -e site:deploy + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.5.0_22 Java home: C:\apps\dev\java\sun_jdk1.5.0_22\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 7" version: "6.1" arch: "x86" Family: "windows" [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building PL01 [INFO] task-segment: [site:deploy] [INFO] ------------------------------------------------------------------------ [INFO] [site:deploy {execution: default-cli}] sftp://mv002.local/projects/pl01/htdocs/site/ - Session: Opened [INFO] Pushing D:\workspaces\eclipse38\pl01\target\site [INFO] >>> to sftp://mv002.local/projects/pl01/htdocs/site/./ Recursively uploading directory D:\workspaces\eclipse38\pl01\target\site as ./ sftp://mv002.local/projects/pl01/htdocs/site/ - Session: Disconnecting sftp://mv002.local/projects/pl01/htdocs/site/ - Session: Disconnected [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error uploading site Embedded error: Error occurred while deploying 'D:\workspaces\eclipse38\pl01\target\site' to remote repository: sftp://mv002.local/projects/pl01/site/ String index out of range: 0 [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:592) 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.AbstractDeployMojo.push(AbstractDeployMojo.java:451) at org.apache.maven.plugins.site.AbstractDeployMojo.deploy(AbstractDeployMojo.java:286) at org.apache.maven.plugins.site.AbstractDeployMojo.deployTo(AbstractDeployMojo.java:247) at org.apache.maven.plugins.site.AbstractDeployMojo.execute(AbstractDeployMojo.java:164) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.wagon.TransferFailedException: Error occurred while deploying 'D:\workspaces\eclipse38\pl01\target\site' to remote re pository: sftp://mv002.local/projects/pl01/htdocs/site/ at org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.putDirectory(SftpWagon.java:286) at org.apache.maven.plugins.site.AbstractDeployMojo.push(AbstractDeployMojo.java:434) ... 22 more Caused by: 4: at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:1706) at org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.mkdir(SftpWagon.java:204) at org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.ftpRecursivePut(SftpWagon.java:300) at org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.putDirectory(SftpWagon.java:277) ... 23 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:558) at com.jcraft.jsch.ChannelSftp.remoteAbsolutePath(ChannelSftp.java:2361) at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:1684) ... 26 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 seconds [INFO] Finished at: Sun Jan 27 00:00:34 CET 2013 [INFO] Final Memory: 33M/59M [INFO] ------------------------------------------------------------------------
Attachments
Attachments
Issue Links
- is related to
-
WAGON-354 Site deployment always fails with StringIndexOutOfBoundsException in SftpWagon
- Closed