[Urgent] Maven repo credentials

Try changing ${env.BINTRAY_USER} and ${env.BINTRAY_API_KEY} to your unencrypted username and password

As mentioned by @ssmusoke, all our packages are public and do not require authentication to download.

My question would be: why do you need to add https://dl.bintray.com/openmrs/maven/ to your settings.xml?

well, but then which account would that be if u are saying no account it required and its public?

somehow my server file was emptied by OSX i don’t know how and it took me some minutes before i learnt that, adding content to it saved

Well looks like this grey area has come into play as I was trying to deploy UgandaEMR to jfrog and failed.

Is there any way forward and guidance on this @burke @dkayiwa

@ssmusoke can you share the log or stack trace of the error that you are getting?

Can you share the entire log instead of one line?

Gist updated https://gist.github.com/ssmusoke/df1919fdc8373e499a5b02f9e41f9d90

Did mvn release:prepare and mvn release:perform succeed?

@dkayiwa release:prepare succeeded, release:perform failed at deploying the artifacts to the maven repository with the 401 error

I have run both commands successfully on your module. Can you check if all is as you would expect for a version 2.0.4 of your module?

That seems to work, can you share a sanitized version of your .m2/settings.xml as a starting point.

Then I will only attribute it to bintray permissions since they were locked down

Here we go: https://pastebin.com/KyBPeqQA

Where ‘name’ and ‘password’ should be replaced with yours.

Strange I get the same error when I try to release a different module - in this case data integrity

[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project dataintegrity: Failed to deploy artifacts: Could not transfer artifact org.openmrs.module:dataintegrity:pom:4.4.2 from/to openmrs-repo-modules (http://mavenrepo.openmrs.org/nexus/content/repositories/modules/): Failed to transfer file https://openmrs.jfrog.io/openmrs/modules/org/openmrs/module/dataintegrity/4.4.2/dataintegrity-4.4.2.pom with status code 401 -> [Help 1]

I am wondering what is wrong with my setup

401 is a permission problem. I remember @raff did transfer of some accounts from nexus to the new infrastructure.

So, where’s what I need:

  • Deployment management session from your pom files (and check if you have it multiple times in your repo
  • username you are trying to use from your .m2 repo

@cintiadr sent complete file via PM

I need the distributionmanagement session from your pom file, the one on the repository!

@cintiadr for the offending modules