如果已经存在maven_metadata.xml,则在下载maven_metadata.xml时Maven部署会挂起 [英] Maven deploy hangs while downloading maven_metadata.xml if it exists already

查看:383
本文介绍了如果已经存在maven_metadata.xml,则在下载maven_metadata.xml时Maven部署会挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将我的项目配置为部署到我自己的存储库中.当我运行mvn deploy时,它似乎可以正常工作,但是在上载jar后挂在将maven_metadata.xml文件下载到的阶段.

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

如果我删除服务器上的maven-metadata.xml文件,它可以正常工作,并且仅上传一个新生成的文件.

If I delete the maven-metadata.xml file on the server, it works fine and just uploads a freshly generated one.

我还应该提到,我只是在SCP上使用一个简单的HTTP服务器,我发现较大的工件系统对我所做的事情来说是过大的杀伤力.我什至不知道如何调试它.任何建议,将不胜感激.

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.

推荐答案

这似乎是一些晦涩的错误,我无法在Maven 3.0.5中找到对其的引用(debian测试中的默认设置).安装Maven 3.1.1可以解决此问题.

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.

这篇关于如果已经存在maven_metadata.xml,则在下载maven_metadata.xml时Maven部署会挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆