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?
Asked
Active
Viewed 333 times
1 Answers
1
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
- 53
- 4
-
where does this IP (84.16.77.25) point to, is it an external maven repository – Sam Jun 17 '10 at 05:08
-
@usovmv - can you kindly clarify – Sam Jun 22 '10 at 04:09