Uploaded image for project: 'Maven Deploy Plugin'
  1. Maven Deploy Plugin
  2. MDEPLOY-167

Occasionally deploy fails "Failed to deploy metadata: Could not transfer metadata "



    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: deploy:deploy
    • Labels:
    • Environment:
      maven 3.1-SNAPSHOT at revision:1521204, nexus-2.6.2-01, jdk 1.6.37


      Maven deploy fails occasionally with following error message

      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy metadata: Could not transfer metadata 
      • user has permission to connect to nexus with scp all the time
      • nexus is running all the time
      • nexus isn't running out of disk space

      According to this thread :http://mail-archives.apache.org/mod_mbox/maven-users/201101.mbox/%3C1294417752462-3332094.post@n5.nabble.com%3E

      It could be related to legacy format of metadata, which could be the case, tried passing


      still it fails occasionally

      Caused by: org.apache.maven.wagon.TransferFailedException: Error occurred while deploying '<removed>/maven-metadata.xml' to remote repository: scp://<removed>/home/<removed>/sonatype-work/nexus/storage/snapshots: Unexpected end of data
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.handleIOException(ScpWagon.java:416)
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.finishPutTransfer(ScpWagon.java:108)
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:423)
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:402)
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:376)
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
      build	13-Sep-2013 13:17:15		at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811)
      build	13-Sep-2013 13:17:15		... 22 more
      build	13-Sep-2013 13:17:15	Caused by: java.io.IOException: Unexpected end of data
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.checkAck(ScpWagon.java:130)
      build	13-Sep-2013 13:17:15		at org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.finishPutTransfer(ScpWagon.java:100)

      (some of) other posts about this issue:

      I would be ready to provide more helpful information if required




            • Assignee:
              rfscholte Robert Scholte
              jigar.joshi Jigar Joshi
            • Votes:
              0 Vote for this issue
              2 Start watching this issue


              • Created: