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
2010-06-16 16:21:20
where does this IP (84.16.77.25) point to, is it an external maven repository
Samuel
2010-06-17 05:08:33
@usovmv - can you kindly clarify
Samuel
2010-06-22 04:09:36