Home > Return Code > Error Deploying Artifact Failed To Transfer File Return Code Is 401

Error Deploying Artifact Failed To Transfer File Return Code Is 401


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, The project's settings: Checklist item 3. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). Having tried all the suggestions above and more without success I eventually found that it was a Jenkins setting that was in error. check over here

Maven web project dependencies Could not resolve dependencies Could not resolve dependencies for maven project All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter Contact Us | advertise And cases where the file was in the Maven conf directory but the user was using a different copy of Maven to do the compile (very easy to do when using A single word for "the space in between" From zero to parabola in 2 symbols Are people of Nordic Nations "happier, healthier" with "a higher standard of living overall than Americans"? I think in my case it is due to a self-signed ssl (apache inverse proxy) used in my nexus. http://blog.sonatype.com/2010/11/what-to-do-when-nexus-returns-401/

Error Deploying Artifact Failed To Transfer File Return Code Is 401

Why do shampoo ingredient labels feature the the term "Aqua"? Does the file exist? –t0mppa Dec 13 '13 at 15:30 no, Its not uploaded to the nexus. more hot questions question feed lang-xml about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Not the answer you're looking for?

CHEERS. [DEBUG] Using connector WagonRepositoryConnector with priority 0 for as admin Downloading: [DEBUG] Could not find metadata sg.com.pinder:pinder:0.0.1-SNAPSHOT/maven-metadata.xml in ServerA2 ( [DEBUG] Writing resolution tracking file /home/Eric_Vader/.m2/repository/sg/com/pinder/pinder/0.0.1-SNAPSHOT/resolver-status.properties Uploading: Return code is: 401, ReasonPhrase: Unauthorized. Return code is: 401, ReasonPhrase: Unauthorized. Maven Deploy Username Password Show Rich Seddon added a comment - 04/15/13 06:09 PM An SSL certificate error will not give you a 401 response.

So, shadowing central and snapshots in settings is the right way to go, but repositories in distributionManagement should be called differently. Maven Error Code 401 Unauthorized more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed The SSL problem was another I had, but 401 is 401, sorry. check here See here for an overview: http://www.sonatype.com/books/nexus-book/reference/confignx-sect-managing-privs.html Show Rich Seddon added a comment - 06/04/12 01:13 PM Nexus doesn't ship with fine grained control of repositories, but you can easily add privileges

Very frustrating. Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request The advantage of this approach is that you are sure the build is using your settings and not some random file it might be taking off the file system. share|improve this answer answered Nov 18 '14 at 13:34 betty 317 I got the same "Could not find metadata" debug message but the actual error was another one: I Atlassian Log In Unable to deploy artifacts to Nexus Development nexus Tags: # mogoodrich (Mark Goodrich) 2015-08-06 13:14:31 UTC #1 Anyone know if there were any changes to the mavenrepo.openmrs.org credentials

Maven Error Code 401 Unauthorized

I am just hitting wall after wall with Maven. What happens to a radioactive carbon dioxide molecule when its carbon-14 atom decays? Error Deploying Artifact Failed To Transfer File Return Code Is 401 Return code is: 401, ReasonPhrase:Unauthorized. Artifactory Return Code Is: 401, Reasonphrase: Unauthorized Apache Maven and Maven are trademarks of the Apache Software Foundation.

I never succeed in thickening sauces with pasta water. check my blog Have you tried to login with these credentials? We run Archiva on the same machine as UberSVN, and our Jenkins sits inside UberSVN as a plugin. Excerpt from pom.xml: ServerA2 ServerA2-releases ServerA2 ServerA2-snapshots Excerpt from settings.xml: admin XXX central Error Deploying Artifact Failed To Transfer File Return Code Is 400

Dealing with "friend" who won't pay after delivery despite signed contracts Are the guns on a fighter jet fixed or can they be aimed? Any ideas would be appreciated. See: https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven --> release-sign-artifacts release true That's one big Maven problem out of the way. http://itivityglobal.com/return-code/nmake-fatal-error-u1077-return-code-39-0x2-39.html The SSL problem was another I had, but 401 is 401, sorry.

I does not make any changes to the installed nexus. Mng-4469 So when you get a 401 on deploying artifacts to Nexus, you need to make sure you provide correct credentials. I tested the call with curl curl -u username:password http://url/artifactory/libs-snapshot-local/com/myproject/api/1.0-SNAPSHOT/api-1.0-20160128.114425-1.jar --request PUT --data target/api-1.0-SNAPSHOT.jar and I got the error: { "errors" : [ { "status" : 401, "message" : "Artifactory configured

Post Reply Bookmark Topic Watch Topic New Topic Boost this thread!

How should I respond to absurd observations from customers during software product demos? Since the password lies in settings.xml, try running this from within Jenkins mvn help:effective-settings. You can check this by running mvn help:effective-settings. Error Deploying Artifact Failed To Transfer File Return Code Is 500 XBN-Java is the foundation of Codelet (http://codelet.aliteralmind.com). Lesser General Public License (LGPL) version 3.0 https://www.gnu.org/licenses/lgpl-3.0.txt Apache Software License (ASL) version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt Jeff

at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:837) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:467) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274) ... 13 more Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: Not the answer you're looking for? Movie about a girl who had another different life when she dreamed Can this number be written in (3^x) - 1 format? http://itivityglobal.com/return-code/vsam-catalog-return-code-is-8-reason-code-is-igg0cleg-42.html But exists in my local target directory. –Gangaraju Dec 13 '13 at 15:33 add a comment| 2 Answers 2 active oldest votes up vote 9 down vote accepted Its working now.

When i am running mvn deploy i am getting this error. What is the name of these creatures in Harry Potter and the Deathly Hallows? Browse other questions tagged maven-3 artifactory or ask your own question. Make sure your username/password is correct by logging into the Nexus UI.

What is the name of these creatures in Harry Potter and the Deathly Hallows? I ran it again with the -k option, and this time got only this: Couldn't read data from file "pom.xml", this makes an empty POST. Either publish using a different version number, or delete the old artefact on the server and republish. Join them; it only takes a minute: Sign up Deploying artifacts in nexus from maven gives error “Return code is: 401”?

asked 3 years ago viewed 19287 times active 3 years ago Linked 1 Maven Unable to deploy in nexus Related 2Deploy Maven artifacts on Sonatype Nexus repository hosted on Linux45Error when How can "USB stick" online identification possibly work? Return code is: 401, ReasonPhrase: Unauthorized. If the server is using https but the URL in your POM is http, you might get 401 as well.

What's the point of repeating an email address in "The Envelope" and the "The Header"? I know what settings file is being used. –Oggie Dec 29 '12 at 20:00 1 @Oggie You assume you know the settings. Or it's merely an ordinary mistake? I love Pulak's suggestion of using the "help:effective-settings plugin to troubleshoot this problem.

Browse other questions tagged java maven or ask your own question.