Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-1242

Can't deploy with scp wagon provider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0 (RC)
    • None
    • None
    • None

    Description

      I can very rarely deploy with this provider.

      When it doesn't work, it block and I need to do a Ctrl-C or I get an exception :

      [INFO] ----------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ----------------------------------------------------------------------------
      [INFO] Error deploying artifact: Error occured while deploying 'org/apache/maven/scm/maven-scm/1.0-alpha-4-SNAPSHOT/mave
      n-scm-1.0-alpha-4-20051020.074531-6.pom.sha1' to remote repository: scp://repo1.maven.org/home/projects/maven/repository
      -staging/snapshots/maven2

      session is down
      [INFO] ----------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Error occured while deploying 'org/apa
      che/maven/scm/maven-scm/1.0-alpha-4-SNAPSHOT/maven-scm-1.0-alpha-4-20051020.074531-6.pom.sha1' to remote repository: scp
      ://repo1.maven.org/home/projects/maven/repository-staging/snapshots/maven2
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:46
      9)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
      a:301)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
      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 deploying artifact: Error occured while deploying 'org/
      apache/maven/scm/maven-scm/1.0-alpha-4-SNAPSHOT/maven-scm-1.0-alpha-4-20051020.074531-6.pom.sha1' to remote repository:
      scp://repo1.maven.org/home/projects/maven/repository-staging/snapshots/maven2
      at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:159)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
      ... 16 more
      Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error occured while
      deploying 'org/apache/maven/scm/maven-scm/1.0-alpha-4-SNAPSHOT/maven-scm-1.0-alpha-4-20051020.074531-6.pom.sha1' to rem
      ote repository: scp://repo1.maven.org/home/projects/maven/repository-staging/snapshots/maven2
      at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:91)
      at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
      ... 18 more
      Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while deploying 'org/apache/maven/scm/maven-scm
      /1.0-alpha-4-SNAPSHOT/maven-scm-1.0-alpha-4-20051020.074531-6.pom.sha1' to remote repository: scp://repo1.maven.org/home
      /projects/maven/repository-staging/snapshots/maven2
      at org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:160)
      at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:202)
      at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:109)
      at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:77)
      ... 19 more
      Caused by: com.jcraft.jsch.JSchException: session is down
      at com.jcraft.jsch.Channel.connect(Unknown Source)
      at org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:116)
      ... 22 more

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              evenisse Emmanuel Venisse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: