Putting the maven mirrors feature to use

Today, we are having a slow internet connection, which making maven based builds maven very slow. BC noticed that only the connections using the http protocol are slow, whereas connections using the https protocol are normally fast. As most maven repositories are exposed using both the http and the https protocol, all you have to do is to tell your local maven client to use https. The way I found to do that is by defining a mirror for the central repository.

Here is a modified settings.xml (located in ~/.m2/) that does it.

      <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>

It's only fair to share...
Share on Facebook
Tweet about this on Twitter
Share on LinkedIn

Leave a Reply