I have a very simple default application that I\'ve created to test my Eclipse Indigo/Maven v3.0.1 setup on my Windows 7 machine. The Hello World app runs fine from Eclipse
In my case, I went to the local repository (~/.m2/repository/
), found the corresponding group and discovered that the artifact at which the download is stuck has two files with .part
and .part.lock
extensions. Deleting them helped.
OK guys, I had the same problem downloading a large file. We're all probably using the lightweight HTTP wagon. If you look at the docs:
http://maven.apache.org/wagon/wagon-providers/wagon-http-lightweight/
Known Limitation:
The main limitation is that you can't download data that doesn't fit entirely into memory.
So I increased the memory for Maven:
export MAVEN_OPTS="-Xmx1024m"
and voila, it works. (!!!!)
Well for what it's worth, here's the answer to what I've been experiencing.
If I leave Maven at v3.0.1 I have to add the mirror listed above and it works fine.
If I upgrade Maven to v3.0.3 then I have to remove the mirror listed above to make it work. :-)
I tried this on two separate machines and had identical behaviour. This could mean the network here is to blame as they both go through the same router.
Anyway, so there's essentially two workarounds there. I'm not sure if either are the "correct" response, but they keep me moving forward at least.
Thanks to all that submitted answers.
I had exactly the same problem a while back - long story short it was a networking issue. And, yes just like you tried I could grab the file with a web browser just fine.
For testing purposes are you using a proxy, and to the proxy settings in Maven match the browser?
I had similar issue. What changed was the move of nexus to VPN. Turned out I had DNS entry cached.
Flushing DNS fixed it. For record for Ubuntu like systems:
sudo systemd-resolve --flush-caches
I had the same problem. In my case AVG antivirus software blocked Maven from downloading artifacts. Disabling it temporarily helped.