Maven failing to download jar dependencies
I solved this problem by downgrading to Java 6.
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.
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. (!!!!)
I had the same problem. In my case AVG antivirus software blocked Maven from downloading artifacts. Disabling it temporarily helped.