Artifactory Error Code 401
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this failed to deploy file: http response code: 401. http response message: unauthorized site About Us Learn more about Stack Overflow the company Business Learn more error deploying artifact failed to transfer file return code is 401 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x artifactory 401 error Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up unauthorized access artifactory denied deploy on artifactory even though credentials are included up vote 9 down vote favorite 2 I am trying to deploy a zip file to a remote inhouse maven repo.(artifactory integrated into hudson). pom.xml ...
Maven Artifactory Not Authorized
quits with return code 401. Looking at artifactory's logs 2011-07-15 13:52:50,090 [DENIED DEPLOY] libs-release-local:somefile.zip for anonymous/192.168.220.146. I don't understand why maven doesn't use the supplied credentials. What am i doing wrong here ? maven hudson artifactory share|improve this question asked Jul 15 '11 at 19:33 Abhijith 1,8333920 add a comment| 5 Answers 5 active oldest votes up vote 6 down vote Tip to solve the problem with the clear text password: Access and login into Artifactory. Once you are logged in, click over your user name, on the superior right corner of the screen. Put your password then clique in the em Unlockbutton, enabling the encrypted password. Copy the tag that will be showed on the inferior part of the screen and paste it into the settings.xml file. If you prefer to just copy the password, be sure about let it exactly equals the tag showed below, including the "\" at the beginning of the password. Remember to adjust the tag with the id of your server, defined into the tag, in your POM.xml Click in Update button and ready! Check if everything will occur well at the next project's pub
deploy file: HTTP response code: 401. HTTP artifactory maven deploy response message: UnauthorizedLog In ExportXMLWordPrintable Details Type: Bug Status: Open Priority: High Resolution: http://stackoverflow.com/questions/6712249/unauthorized-access-on-artifactory-even-though-credentials-are-included Unresolved Affects Version/s: None Fix Version/s: None Component/s: Maven2 Labels: artifactory artifacts deploy release repository Environment: ubuntu 14.04, Jenkins, artifactory pro 4.7.1 Description artifactory publish https://www.jfrog.com/jira/browse/HAP-731 failure. 401 Deploying artifact: http://1234.com/artifactory/dma-libs-release-local/com/pason/java-dma-messaging/1.0.1-160418.152457/java-dma-messaging-1.0.1-160418.152457.pom :artifactoryPublish FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':artifactoryPublish'. > java.io.IOException: Failed to deploy file: HTTP response code: 401. HTTP response message: Unauthorized Try: Run with --info or --debug option to get more log output. Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':artifactoryPublish'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMost
Repository Component/s: None Affects Version/s: 2.3.2 Fix Version/s: None Type: Bug Priority: Normal Reporter: Chad Cotter Assignee: Yossi Shaul Resolution: Won't Fix Votes: 0 Labels: None Attachments: pom.xml settings.xml Description "Allow Anonymous Access" general setting causes maven to NOT send user credentials when uploading artifacts. This is a problem because we would like to allow anonymous users read access to our repo but only allow authenticated users to upload artifacts. Everything works fine if I remove anonymous access to just our single repo, but this is not a feasible solution in our environment. settings.xml: