Why add OpenMRS repositories to Maven settings.xml?

Tags: #<Tag:0x00007fe2e1dc63a8>

I see that the Maven’s global settings.xml is being used to configure OpenMRS repositories. But the problem seems to be that this cause even non-openmrs projects to fetch build dependencies from OpenMRS repositories.

Quoted from: https://maven.apache.org/settings.html#Repositories

The settings element in the settings.xml file contains elements used to define values which configure Maven execution in various ways, like the pom.xml, but should not be bundled to any specific project, or distributed to an audience.

It’s handy for working with OpenMRS SDK so that maven knows from where to fetch SDK updates. The OpenMRS repo proxies JCenter, which is also handy for fetching libraries published there.

Are you having any issue with that setting?

Say that I have a maven project that set to fetch dependencies only from some certain remote repository.

If I run mvn, it will still look in for dependencies from openmrs.org/nexus repositories. Currently I’m not having any particular issue. It seems to slow down the download process however.

@raff, @gayanw am having issues with settings.xml when i was creating a module using sdk.The only problem arise from the settings.xml file. Any help with be appreciated thanks

@sharif , since we are not magicians :grinning: , can you be more detailed on the error you get , what steps have you taken etc ??

@mozzy thanks , the problem was with maven settings where by it was pointed to jre than jdk on the classpath. @k-joseph helped me out , am now out of any blocker so fur thanks for concern

1 Like