Home > Return Code > Nexus 401 Return Code

Nexus 401 Return Code

Contents

The SSL problem was another I had, but 401 is 401, sorry. Taxiing with one engine: Is engine #1 always used or do they switch? If there is no error output, ensure your user privileges are correctly configured on the server. Terms of Service Privacy Policy Copyright© 2008-present, Sonatype Inc. navigate here

curl: (60) SSL certificate problem, verify that the CA cert is OK. Nexus is running on localhost:8080/nexus and i am able to login with default user/password. at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:143) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:149) ... 21 more Caused by: org.eclipse.aether.deployment.DeploymentException: 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. up vote 4 down vote favorite 2 I am getting 401 error while deploying in 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

In this case use code curl -u username:password --request PUT --data target/api-1.0-SNAPSHOT.jar http://url/artifactory/libs-snapshot-local/com/myproject/api‌/1.0-SNAPSHOT/api-1.‌0-20160128.114425-1.‌jar instead –TouDick Jul 5 '16 at 11:08 add a comment| up vote 2 down vote just change in at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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

Why do shampoo ingredient labels feature the the term "Aqua"? I've been taking a lot from SO recently, so I'm glad that I've been able to help someone else, your question has been the first time someone's accepted my answer! –John If credentials were sent there will be an entry in the feed. Mng-4469 Do you think I am missing something?

share|improve this answer answered Nov 8 '16 at 4:34 Jay Random 13 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Error Deploying Artifact Failed To Transfer File Return Code Is 400 dkayiwa (Daniel Kayiwa) 2016-02-18 20:23:15 UTC #5 @ryan am getting the same exact problem right now. What does the expression 'seven for seven thirty ' mean? Electrical Propulsion Thrust Is the use of username/password in a mobile app needed?

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). Maven Deploy Username Password All rights reserved. maven nexus share|improve this question edited Dec 13 '13 at 15:30 asked Dec 13 '13 at 15:24 Gangaraju 1,49151345 Failed to transfer file: http://localhost:8080/nexus/content/repositories/snapshots/t‌estproject/testproje‌ct/1.0-SNAPSHOT/test‌project-1.0-20131213‌.150615-1.jar. Either publish using a different version number, or delete the old artefact on the server and republish.

  1. Hope it helps.
  2. If you are receiving a 401 it is because maven is sending the wrong login credentials, or no credentials at all.
  3. Bash regex test not working Do we know exactly where Kirk will be born?

Error Deploying Artifact Failed To Transfer File Return Code Is 400

What went wrong: Execution failed for task ':uploadArchives'. https://issues.sonatype.org/browse/NEXUS-10234 In settings.xml, settings/servers/server/id equals ossrh In pom.xml, distributionManagement/snapshotRepository/id equals ossrh (full files are at the bottom) Checklist item 4. Error Deploying Artifact Failed To Transfer File Return Code Is 401 Thanks. Return Code Is 401 Reasonphrase Unauthorized. Artifactory I am just hitting wall after wall with Maven.

Return code is: 401, ReasonPhrase: Unauthorized. check over here I would suspect the username or password except that they were explicitly copied from my settings.xml file and the Maven deployment works. I did not spend much time on it as it solves my problem. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request

Why isn't the religion of R'hllor, The Lord of Light, dominant? Hide Permalink Joe Tom added a comment - 12/12/16 10:31 PM I verified the known scenarios. If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. his comment is here Without more details, it's pretty hard to tell what's going wrong.

Then login to Nexus as an admin and look what permissions are set. Error Deploying Artifact Failed To Transfer File Return Code Is 500 What do you call this alternating melodic pattern? It is sometimes the case that when people try to deploy artifacts into Nexus using Maven, the deployment fails and they receive a 401 error.

Here is a check list you can follow: Make sure your username/password is correct by logging into the Nexus UI.

Thanks & Regards Senthil Kumar C Hide Permalink Alberto Corral added a comment - 04/15/13 05:19 PM I'm having this problem also. Note: I have uploaded Releases repositories using GUI, but snapshot repositories doesn't have option to upload in GUI. at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:143) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:171) at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:280) ... 22 more Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.somecompany:project:war:1.0.0 from/to local-nexu (http://localhost:8081/nexus/content/repositories/releases/): Failed to transfer file: http://localhost:8081/nexus/content/repositories/releases/com/somecompany/project/1.0.0/project-1.0.0.war. Maven Unauthorized 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.2k348118 answered Dec 3 '14 at 3:06 Grant Currey 211 add a comment|

It seems possible there may be some unknown ones, so if you run into this feel free to file a distinct ticket with a reproduce case. How to interpret this decision tree? Hide Permalink Thomas Keys added a comment - 12/08/16 05:38 PM I'm seeing this issue occur with a scenario that I'm not sure has been mentioned here. weblink Why are there no Imperial KX-series Security Droids in the original trilogy?

posted 2 years ago Can you login to Nexus on your machine and try to upload an artifact to http://localhost:8081/nexus/content/repositories/snapshots/org/bhavesh/my-test? Return code is: 401, ReasonPhrase: Unauthorized. Make sure your username/password is correct by logging into the Nexus UI. 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.

This has a 'Repository ID' field which was set to the wrong value. Return code is: 401 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205) I'm afraid it doesn't shed much light.