[Urgent] Maven repo credentials

(Kaweesi Joseph) #21

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

(Stephen Senkomago Musoke) #22

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

(Daniel Kayiwa) #23

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

(Stephen Senkomago Musoke) #24

(Daniel Kayiwa) #25

Can you share the entire log instead of one line?

(Stephen Senkomago Musoke) #26

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

(Daniel Kayiwa) #27

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

(Stephen Senkomago Musoke) #28

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

(Daniel Kayiwa) #29

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?

(Stephen Senkomago Musoke) #30

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

(Daniel Kayiwa) #31

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

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

(Stephen Senkomago Musoke) #32

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

(Daniel Kayiwa) #33

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

(Cintia Del Rio) #34

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

(Stephen Senkomago Musoke) #35

@cintiadr sent complete file via PM

(Cintia Del Rio) #36

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

(Stephen Senkomago Musoke) #37

@cintiadr for the offending modules