Maven hangs indefinitely when checking for updates

I am building a project using maven (on which I am starting) and it hangs:

$ 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 team carried out the task without any problems for a while, I didn’t [consciously?] Change anything, and it started to hang at that moment (even left it for the night and did not 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 will be honest, I would be very impressed if someone identified a problem only with this information, but any pointers in the right direction would be very useful, the search would not bring anything, and I'm not sure where to start.

+4
source share
1 answer

it looks like it freezes at boot time, to see the exact point where it freezes, run

mvn clean package -X -e

+2

All Articles