How to speed up Maven and Eclipse?

At work I am constantly bugged by modal dialogs in my Eclipse whenever the m2e plugin starts any kind of long-running Maven action, like downloading artifacts from our company repository. It startet to get really annoying a couple of weeks ago when almost every single one of our own artifacts downloaded only with a few kB/s. So I started to investigate some of the usual suspects:

To test network speed I did regular HTTP Get requests and tried downloading our artifacts from different computers around the network. All downloads were much faster than the downloads inside my Eclipse installation.

Then I removed all proxy settings from my set up, although I already had exclude rules for our Nexus repository. No improvement.

My Maven settings are pretty bare from the start, but I tried to strip everything from old projects and only kept my custom repository location and some other stuff related to my local set up. I also upgraded to Maven 3.2.3, just to have to latest version. No improvement.

Then I took another look at the Nexus repository and tried to add a custom routing for our artifacts. Instead of looking into all configured repositories (or whatever Nexus decided to route based on internal automatic routing rules…) I added the first to elements of our company groupId to a custom routing and let Nexus only look in the hosted snapshot and release repositories.

Finally, that seems to bring an improvement and now download speed and overall maven performance in Eclipse is much, much higher. I’m not quite sure that the annoying modal dialogs will not pop up in my face anymore, but at least I feel like I am not constantly waiting for Eclipse anymore…

Weitere Artikel

Gronkh ist jetzt ein Rundfunksender...

Crossfit Regionals 2018 in Berlin

Crossfit Open 2018

Qutebrowser userscript for TT-RSS

Aufbau eines Hackintosh

Enable request logging in Jetty 9.1

Hacktoberfest 2017

Automatische Erneuerung von Lets Encrypt Zertifikaten

Neue Antennen für meine Fritzbox

Fitness vs Gesundheit