Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Permission denied: connect

C:\WINDOWS\system32>mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk [INFO] Scanning for projects… Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml [WARNING] Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Permission denied: connect [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.847 s [INFO] Finished at: 2018-04-04T10:04:58+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Error resolving version for plugin ‘org.openmrs.maven.plugins:openmrs-sdk-maven-plugin’ from the repositories [local (C:\Users\CARITAS_ADMIN.m2\repository), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException

Hi @ienumah, your post is not very specific. I’m assuming you’re trying to build openmrs API.

Did you follow the Maven repo setup steps here?

Hi,

I have found solution to my problem.

I solved it by downgrading my MAVEN from 3.3.5 to 3.0.5.

Thanks