SDK Release 4.0.0

That artifact and version haven’t been changed since 3.1.0 5 years ago. However, I can see that that artifact isn’t in Maven Central; it’s only available on the OpenMRS Maven repo. I believe we had an issue where the Maven proxy didn’t come up, but if you try deleting the cached failure from your local cache and re-running the build, you should be able to find that artefact now.

I have brought back my old settings.xml and I see the following error

org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xmlfailed to transfer from https://dl.bintray.com/openmrs/maven/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of openmrs-bintray-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.openmrs.maven.plugins:openmrs-sdk-maven-plugin/maven-metadata.xml from/to openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/): authorization failed for https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml, status: 403 Forbidden

Looks like I am forbidden to access https://dl.bintray.com/openmrs/maven/org/openmrs/maven/plugins/openmrs-sdk-maven-plugin/maven-metadata.xml

Yeah, bintray no longer exists

@ibacher What do I replace this line in the settings.xml with

<pluginRepository>
          <id>openmrs-bintray-repo</id>
          <name>OpeMRS Maven Bintray Repository</name>
          <url>https://dl.bintray.com/openmrs/maven/</url>
        </pluginRepository>
<pluginRepositories>
    <pluginRepository>
        <id>openmrs-repo</id>
        <name>OpenMRS Maven Repository</name>
        <url>https://mavenrepo.openmrs.org/public</url>
    </pluginRepository>
</pluginRepositories>

Thanks @ibacher the final fix was using the default settings.xml from the SDK https://raw.githubusercontent.com/openmrs/openmrs-sdk/master/maven-plugin/src/main/resources/settings.xml

Hi @jwnasambu . I am facing the same issue with sdk 4.0.1 and running mvn 3.8.1 i have tried the same approach but failed. Any leads?

Oh sorry! Do you mind sharing the contents of your C:\Users\DELL\.m2\settings.xml using pastebin.com?

I don’t mind. Please find the file here.

Thanks.

Kindly run this command in your terminal del C:\Users\DELL\.m2\settings.xml

Followed by this command mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.0.0:setup-sdk feel free to share the out put using pastebin.

Find the results here. Though i thought I should run mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.0.1:setup-sdk

Then run the following command mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk -U to fix the issue related to maven 3.8.1 and share the output too.

Feel free to try out too but kindly let us finish what we had began working on first.

Ran and here are the results.

The error still persists. Find the error logs here.

Kindly what does java -version give?

openjdk version "1.8.0_282" OpenJDK Runtime Environment (build 1.8.0_282-bre_2021_01_20_16_37-b00) OpenJDK 64-Bit Server VM (build 25.282-b00, mixed mode)

Thanks for the response! I asked so because in your error logs I saw this version Java version: 1.7.0_80, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre.

@ibacher what is your take on running run mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.0.1:setup-sdk?

I am running version 1.11.7 which requires java 7