views:

17

answers:

1

My ~/.m2/settings.xml has a mirrors element which points to an internal repository based on Apache Archiva. But in a home network, mvn tries to timeout trying to look for the internal repository which is no longer accessible. How to configure the settings.xml for internal / external use?

+1  A: 

instead use virtual host in etc/hosts. You need to use it also in settings.xml when you at work provide internal host adres - at home - external.

192.168.1.15 mavenmirror

84.16.77.25 mavenmirror

and use this host in you settings.xml

Max
where does this IP (84.16.77.25) point to, is it an external maven repository
Samuel
@usovmv - can you kindly clarify
Samuel