Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven hanging indefinitely while checking for updates

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.

like image 241
Luis Avatar asked Aug 28 '14 16:08

Luis


1 Answers

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

like image 61
jmj Avatar answered Nov 15 '22 17:11

jmj