...
To configure your Maven client to use the proxy you must add the following to your settings.xml file (see here for a complete sample):
Code Block |
---|
<settings> ... <mirrors> <mirror> <id>nexus</id> <mirrorOf>central,apache-snapshots,codehaus-snapshots,openmrs-repo</mirrorOf> <url>http://SERVER:8080/nexus/content/groups/public</url> </mirror> </mirrors> </settings> |
This will tell Maven to use the new proxy when searching for artifacts from those repositories including the OpenMRS repository. Depending on your version of Maven you may also have to add repository elements for Maven Central as shown here.