Installation issue

Been trying to install OpenMRS but I keep encountering the error below no matter the type of version I try to build. I have managed to solve quite a few errors I encountered but I have no idea where to start from for this one. I am using Java jdk 1.8.x on Linux. Can anyone please help.

-------------------< org.openmrs.test:openmrs-test >-------------------- [INFO] Building openmrs-test 1.9.4 [3/6] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] β€” maven-clean-plugin:2.5:clean (default-clean) @ openmrs-test β€” [INFO] [INFO] β€” buildnumber-maven-plugin:1.1:create (default) @ openmrs-test β€” [INFO] [INFO] β€” build-helper-maven-plugin:1.5:parse-version (parse-version) @ openmrs-test β€” [INFO] [INFO] β€” maven-install-plugin:2.4:install (default-install) @ openmrs-test β€” [INFO] Installing /home/ lishebo/Downloads/openmrs-core-1.9.4/test/pom.xml to /root/.m2/repository/org/openmrs/test/openmrs-test/1.9.4/openmrs-test-1.9.4.pom [INFO] [INFO] --------------------< org.openmrs.api:openmrs-api >--------------------- [INFO] Building openmrs-api 1.9.4 [4/6] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for OpenMRS 1.9.4: [INFO] [INFO] OpenMRS … SUCCESS [ 0.678 s] [INFO] openmrs-tools … SUCCESS [ 0.830 s] [INFO] openmrs-test … SUCCESS [ 0.009 s] [INFO] openmrs-api … FAILURE [ 0.191 s] [INFO] openmrs-web … SKIPPED [INFO] openmrs-webapp … SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.889 s [INFO] Finished at: 2024-02-20T14:37:42Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project openmrs-api: Could not resolve dependencies for project org.openmrs.api:openmrs-api:jar:1.9.4: Failed to collect dependencies at org.azeckoski: reflectutils:jar:0.9.14: Failed to read artifact descriptor for org.azeckoski:reflectutils:jar:0.9.14: Could not transfer artifact org.azeckoski:reflectutils:pom:0.9.14 from/to maven-default-http-blocker (h ttp://0.0.0.0/): Blocked mirror for repositories: [openmrs-repo (JFrog, default, releases+snapshots)] β†’ [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: // DependencyResolutionException - Apache Maven - Apache Software Foundation [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :openmrs-api

So, the issue that you’re running into is that newer versions of Maven (3.6.x on) do not permit downloading dependencies over non-HTTPS connections. Newer versions of core (including 1.9.9 through the most recent 1.9.x release) provide HTTPS connections, but you appear to be using 1.9.4. That means that you likely need to change all of the URLs in the repositories, plugin repositories, and distributionManagement links to point to HTTPS versions of those URLs instead of HTTP.

Alternatively, you can use an older version of Maven which doesn’t have the restriction on downloading artifacts from plain HTTP connections.

1 Like