Home > Return Code > Artifactory Return Code Is: 401, Reasonphrase: Unauthorized

Artifactory Return Code Is: 401, Reasonphrase: Unauthorized


XBN-Java is the foundation of Codelet (http://codelet.aliteralmind.com). org.sonatype.oss oss-parent 7 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 I have seen instances where it was one one account's .m2 directory and the person was using another account to do the compile. If curl is installed on your machine, you can try deploying an artifact with... If you choose to update the question with that info, we'll think further. –JBaruch Dec 26 '13 at 17:17 1 Thanks for your response! http://0pacity.com/return-code/return-code-is-401-reasonphrase-unauthorized-nexus.html

Return code is: 401 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:157) ... 21 more Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 ( Failed to transfer Does the file exist? –t0mppa Dec 13 '13 at 15:30 no, Its not uploaded to the nexus. Is investing a good idea with a low amount of money? Publishing to the remove Maven repository results in an authorization error: ~/java/sruth: gradle -q uploadArchives Uploading: path/to/jar/file to repository remote at https://hostname/path/to/repo Transferring 435K from remote FAILURE: Build failed with an

Artifactory Return Code Is: 401, Reasonphrase: Unauthorized

It will show the 401 along the username. My mistake. daz 2012-06-28 23:09:00 UTC #2 Your first step would be to run Gradle with '--info --stacktrace' so you get more details.

Leave a Reply Cancel reply Enter your comment here... Does it have a "server" section with ID "releases", and the correct username and password? 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). Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request up vote 49 down vote favorite 10 Why am I getting a "401 Unauthorized" error in Maven?

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. Error Deploying Artifact Failed To Transfer File Return Code Is 400 Thanks & Regards Senthil Kumar C Show Senthil Kumar Chandran added a comment - 06/05/12 10:33 AM Got it! Return code is: 401, ReasonPhrase: Unauthorized. So when you get a 401 on deploying artifacts to Nexus, you need to make sure you provide correct credentials.

Query Which Profiles Have Read Access To Specific Object? Artifactory Not Authorized , Reasonphrase:unauthorized. I tried and rechecked everything. Nexus is running on localhost:8080/nexus and i am able to login with default user/password. 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,

Error Deploying Artifact Failed To Transfer File Return Code Is 400

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 at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:573) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:493) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:474) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:454) at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:871) ... 28 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information Artifactory Return Code Is: 401, Reasonphrase: Unauthorized check if the password is still valid! Return Code Is 401 Reasonphrase Unauthorized Maven Deploy Apache Maven and Maven are trademarks of the Apache Software Foundation.

Does it have a "server" section with ID "releases", and the correct username and password? 15 older comments Hide Permalink Rich Seddon added a comment - 06/04/12 01:13 PM Nexus doesn't weblink Here's 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: Not the answer you're looking for? How do I install Python 3.6 using apt-get? Maven Deploy Username Password

Any ideas? Personal loan to renovate my mother's home Encryption in the 19th century When to use the emergency brake in a train? 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 navigate here Sonatype and Sonatype Nexus are trademarks of Sonatype, Inc.

Further details can be found here: https://issues.apache.org/jira/browse/WAGON-421 share|improve this answer edited Jun 8 '15 at 16:04 Robin Green 17.2k346117 answered Dec 3 '14 at 3:06 Grant Currey 211 add a comment| Mng-4469 I didn't think I made any changes, but obviously eliminating that -SNAPSHOT from the version was a bad thing. –aliteralmind Jul 18 '14 at 18:47 8 Why in the WORLD Atlassian

Are you faced to a 401 status code when invoking mvn site:deploy?

Help with a holiday cryptic crossword Statements about groups proved using semigroups Why is the first book of the Silo series called Wool? What's the purpose of the same page tool? And the releases work? –JBaruch Dec 27 '13 at 8:31 Yeap that is very strange indeed, i could not work that out too! Error Deploying Artifact Failed To Transfer File Return Code Is 500 Although it said that it was an authentication error actually it got fixed doing a "rebuild metadata" in the nexus repository.

asked 3 years ago viewed 19165 times active 3 years ago Linked 1 Maven Unable to deploy in nexus Related 2Deploy Maven artifacts on Sonatype Nexus repository hosted on Linux44Error when Return code is: 401 at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280) at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137) ... 23 more Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact sg.com.pinder:pinder:jar:0.0.1-20131227.084815-1 from/to ServerA2 ( Failed to transfer file: According to Maven's settings reference, settings.xml must be in one of two locations: The Maven install: $M2_HOME/conf/settings.xml A user’s install: ${user.home}/.m2/settings.xml Here's my setup: settings.xml: C:\applications\programming\apache-maven-3.2.2\conf\settings.xml M2_HOME is C:\applications\programming\apache-maven-3.2.2 Output for http://0pacity.com/return-code/cpic-return-code-017-sap-return-code-731.html Why didn't the Roman maniple make a comeback in the Renaissance?

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. Do you think I am missing something? I did not spend much time on it as it solves my problem. I updated the question already!

May be the solution is here http://stackoverflow.com/questions/1650596/how-do-i-import-a-new-java-ca-cert-without-using-the-keytool-command-line-utilit Show Alberto Corral added a comment - 04/15/13 05:19 PM I'm having this problem also. Couple of hints... If the server is using https but the URL in your POM is http, you might get 401 as well. Return code is: 401, ReasonPhrase: Unauthorized.

Is using Basic Authentication in an iOS App safe? Return code is: 401, ReasonPhrase: Unauthorized. Note: I have uploaded Releases repositories using GUI, but snapshot repositories doesn't have option to upload in GUI. Old Forum Steven_Emmerson (Steven Emmerson) 2012-06-28 21:38:00 UTC #1 My build.gradle file contains the following (irrelevant lines removed): configurations { deployerJars } dependencies { deployerJars "org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-7+" } uploadArchives { repositories.mavenDeployer {

This may happen unconsciously when the name in the email address is the same as the user name.