Maven deploy hangs while downloading maven_metadata.xml if it exists already

maven, repository, xml

Solution

This appears to be some obscure bug I was unable to find a reference to in Maven 3.0.5 (default in debian testing). Installing Maven 3.1.1 fixed this issue.

Problem

I have configured my project to be deployed to my own repository. When I run `mvn deploy` it looks like it's working but hangs at the stage for downloading the `maven_metadata.xml` file to after it's uploaded the jars. ``` INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ myproject --- Uploading: scp://myrepodomain/.../myproject-0.06-2.jar Uploaded: scp://myrepodomain/.../myproject-0.06-2.jar (39013 KB at 6234.1 KB/sec) Uploading: scp://myrepodomain/.../myproject-0.06-2.pom Uploaded: scp://myrepodomain/.../myproject-0.06-2.pom (8 KB at 21.6 KB/sec) Downloading: scp://myrepodomain/.../maven-metadata.xml 320/319 B .....here is where it just hangs forever ``` If I delete the `maven-metadata.xml` file on the server, it works fine and just uploads a freshly generated one. I should also mention that I am just using a simple HTTP server with SCP, I find the larger artifact systems to be way overkill for what I am doing. I can't figure out how to even debug this. Any suggestions would be appreciated.

Original source