My company's policy frowns upon artifacts downloaded automatically (they have to be approved), so in order to use Maven I need to disable access to Maven's central repository.
In other words, I don't want Maven to attempt any downloads from central.
I know how to configure a local repository (networked or not), my idea is using a "blessed" machine to update the local repository.
PS: I could block requests at the proxy/network level, but I'm asking about how to do it with Maven's configuration.
UPDATE
I finally figured out how to do it. In maven's home, in the conf
directory is a global settings.xml
.
You can either set a mirror to central
that points to some internal server or just override it's definition.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…