receiving 401 on plugin manual release using maven

12 views
Skip to first unread message

Alex Molev

unread,
Jan 31, 2022, 5:28:20 PM1/31/22
to Jenkins Infrastructure
Hi,

I've reset my password and change the password.
I managed to login with my user 'alexmolev' to the artifactory and generate settings.xml file for maven

when I run the command:
mvn release:prepare release:perform

I'm receiving the following error message
 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project cloudify: Failed to deploy artifacts: Could not transfer artifact io.jenkins.plugins:cloudify:hpi:1.0.11 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Transfer failed for https://repo.jenkins-ci.org/releases/io/jenkins/plugins/cloudify/1.0.11/cloudify-1.0.11.hpi 401 Unauthorized -> [Help 1]

Mark Waite

unread,
Jan 31, 2022, 5:31:22 PM1/31/22
to Jenkins Infrastructure
Are you able to successfully:

$ mvn clean deploy

If not, then it is likely that your credentials are not correctly encoded in the settings.xml file or the settings.xml file is not being read.

Alex Molev

unread,
Feb 1, 2022, 1:14:40 PM2/1/22
to jenkin...@googlegroups.com
I can run mvn clean install successfully.

The settings.xml I’ve generated are through the registry UI as documented with the same password I’ve signed in.

Can you please provide an example on how the settings.xml file should look like so I can fill username and password manually

Thanks for a quick response

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Infrastructure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkins-infra/V_h4Ut_34bI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkins-infr...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jenkins-infra/17db5956-d5fe-4842-ab12-6e591c4e09e9n%40googlegroups.com.
--
Alex Molev
Head of R&D
M +972-58-7310135
------
Forbes Banner 2022

Mark Waite

unread,
Feb 1, 2022, 1:25:51 PM2/1/22
to Jenkins Infrastructure
On Tuesday, February 1, 2022 at 11:14:40 AM UTC-7 Alex Molev wrote:
I can run mvn clean install successfully.

The settings.xml I’ve generated are through the registry UI as documented with the same password I’ve signed in.

Can you please provide an example on how the settings.xml file should look like so I can fill username and password manually

Thanks for a quick response



My entries in settings.xml look like this 

  <servers>
    <server>
      <id>maven.jenkins-ci.org</id>
      <username>MarkEWaite</username>
      <!-- See https://www.jenkins.io/doc/developer/publishing/releasing-manually/#artifactory-credentials-for-maven -->
      <password>{FP9...many.more.characters.xgA}</password>
    </server>
  </servers>
 
Mark Waite

Reply all
Reply to author
Forward
0 new messages