In our organization, we've a in house maven repository say http://mymavenrepo.com
to store private artifacts and that is being used across projects.
But recently ip address of machine, where mymavenrepo
was hosted, has changed and hence we had to make a change in hosts file with new ip to build maven projects successfully.
My question is why we need to make change in hosts
file with changed ip and what can be done to avoid change in hosts
file every time ip is changed, like for http://www.google.com, we never have to make entry in hosts
file.