0

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?

Sam
  • 8,387
  • 19
  • 62
  • 97

1 Answers1

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