Artifactory Error 401
Contents |
Unauthorized for valid credentialsLog In ExportXMLWordPrintable Details Type: Bug Status:
Maven Deploy Artifactory 401
Open Priority: Blocker Resolution: Unresolved Affects Version/s: 1.7.6 error deploying artifact failed to transfer file return code is 401 Fix Version/s: None Labels: artifactory bamboo plugin Environment: Bamboo 5.7.2, Artifactory 3.5.2.1.
Failed To Deploy File: Http Response Code: 401. Http Response Message: Unauthorized
Description After creating local user on Artifactory side, and verifying it's working on Manage Artifactory Servers panel on Bamboo error deploying artifact failed to transfer file return code is 400 side ( Connection successful! test result) I am unable to get the same credentials working on the Artifactory Maven 3 task level. Credentials I use have permissions to deploy the artifacts to the all available repositories. Stack trace from failed to transfer file return code is 401 reasonphrase unauthorized catalina.out on Bamboo side: 2015-03-27 09:58:23,404 ERROR [http-bio-8443-exec-34] [ServerConfigManager] Error while retrieving resolving repository list from: https://mvn.local/artifactory java.io.IOException: Failed to obtain list of repositories: HTTP response code: 401. HTTP response message: Unauthorized at org.jfrog.build.client.ArtifactoryBuildInfoClient.throwHttpIOException(ArtifactoryBuildInfoClient.java:647) at org.jfrog.build.client.ArtifactoryBuildInfoClient.getRepositoriesList(ArtifactoryBuildInfoClient.java:192) at org.jfrog.build.client.ArtifactoryBuildInfoClient.getVirtualRepositoryKeys(ArtifactoryBuildInfoClient.java:175) at org.jfrog.bamboo.admin.ServerConfigManager.getResolvingRepos(ServerConfigManager.java:232) at org.jfrog.bamboo.admin.ArtifactoryConfigServlet.doGet(ArtifactoryConfigServlet.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) ... AttachmentsActivity All Comments History Activity Ascending order - Click to sort in descending order Hide Permalink MichaĆ Staruch added a comment - 27/Mar/15 9:52 AM We've found workaround: creating ~/.m2/settings.xml file for bamboo user with encrypted password (generated on the Artifactory side) did the job. It has pretty bad side-effect, though: everyone who can edit any plan in Bamboo has the same privileges as the user defined in sett
here for a quick overview of maven deploy username password the site Help Center Detailed answers to any questions you might
Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request
have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company https://www.jfrog.com/jira/browse/BAP-252 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, http://stackoverflow.com/questions/20788451/return-code-401-with-maven-3-uploading-snapshot-to-artifactory just like you, helping each other. Join them; it only takes a minute: Sign up Return Code 401 with Maven 3 uploading SNAPSHOT to Artifactory up vote 0 down vote favorite 1 I am running the following: Apache Maven 3.0.5, Artifactory(Open-Source) 3.1.0 No Jenkins/Hudson, just the default Artifactory setup. Excerpt from pom.xml:
here for a quick overview of the site Help Center Detailed answers to http://stackoverflow.com/questions/24830610/why-am-i-getting-a-401-unauthorized-error-in-maven any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack failed to Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why am I getting a “401 Unauthorized” error in Maven? up vote 44 down vote favorite 9 Why am I getting a "401 Unauthorized" error in Maven? Here's return code is the error I'm getting when calling mvn deploy (full logs at the bottom): [INFO] BUILD FAILURE [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xbnjava: Failed to deploy artifacts: Could not transfer artifact com.github.aliteralmind:xbnjava:pom:0.1.2 from/to sonatype-nexus-staging (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/github/aliteralmind/xbnjava/0.1.2/xbnjava-0.1.2.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] According to this sonatype support page: "If you are receiving a 401 it is because maven is sending the wrong login credentials, or no credentials at all." Below are the steps I've taken, below that are my full settings.xml and pom.xml files, and below that are the full logs from mvn deploy and mvn deploy -e. Any ideas would be appreciated. I am just hitting wall after wall with Maven. I followed sonatype's checklist when receiving a 401 error: Checklist item 1. Make sure your username/password is correct by logging into the Nexus UI. If curl is installed on your ma