本文介绍了Maven在检查更新时无限期挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Maven(我是新手)构建一个项目,并且挂起了

I'm building a project using maven (at which I am a novice) and it's hanging:

$ mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Presentation Reports
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] artifact org.codehaus.mojo:tomcat-maven-plugin: checking for updates from central

该命令已经执行了一段时间,没有任何问题,我没有[知道吗?]进行了任何更改,并且该命令已开始挂起(即使将其放置一整夜也没有发生变化).

This command has been doing the job without issue for a while, I didn't [knowingly?] change anything and it has begun hanging at that point (even left it overnight and it didn't budge).

$ mvn --version
Apache Maven 2.2.1 (rdebian-8)
Java version: 1.7.0_25
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.5.0-23-generic" arch: "amd64" Family: "unix"

说实话,如果有人仅用这些信息来指出问题,那将给我留下深刻的印象,但是任何指向正确方向的指针都将大有帮助,四处搜寻没有任何结果,而且我不确定从哪里开始.

I'll be honest, I'd be hugely impressed if anyone pinpointed the problem with just this information but any pointers in the right direction would be hugely helpful, searching around yielded nothing and I'm not sure where to start.

推荐答案

看起来好像在下载时挂了,要查看挂起的确切位置,请运行

looks like it hangs while downloading, to see the exact point where it hangs please run

mvn clean package -X -e

这将为您提供调试级别的日志记录详细信息

that will give you debug level logging detail

从评论中它需要重新启动人为过程

from the comments it needed a restart of artifactory process

这篇关于Maven在检查更新时无限期挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-08 10:30