Maven hanging indefinitely while checking for updates

◇◆丶佛笑我妖孽 提交于 2020-12-05 07:14:58

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/25553668/maven-hanging-indefinitely-while-checking-for-updates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!