Home > Return Code > Nexus Maven Deploy Return Code Is 401

Nexus Maven Deploy Return Code Is 401

Contents

You can check this by running mvn help:effective-settings. share|improve this answer answered Jan 8 '15 at 14:43 rwitzel 922713 This solved the problem for me using sonatype nexus 2.12. at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:627) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:541) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:523) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:517) at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:497) at org.eclipse.aether.transport.wagon.WagonTransporter$PutTaskRunner.run(WagonTransporter.java:644) at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:427) at org.eclipse.aether.transport.wagon.WagonTransporter.put(WagonTransporter.java:410) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask(BasicRepositoryConnector.java:510) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350) ... 29 more [ERROR] [ERROR] Expected Nexus should report the 401 In the beta GUI wallet, what levels of mixin are offered by the sliding Privacy bar? navigate here

If you didn't change the default nexus deployment user password the configuration looks similar to this: myrepoID deployment deployment You can find maven settings.xml file reference here http://maven.apache.org/settings.html Like this:Like I successfully logged in and out of the sonatype.org website, using the user/pass in settings.xml. I attempted to use curl to manually deploy an artifact, with the command [C:\]curl -u MY_SONATYPE_DOT_COM_USERNAME:MY_SONATYPE_DOT_COM_PASSWORD https://oss.sonatype.org/content/repositories/snapshots/com/github/aliteralmind/xbnjava/0.1.2-SNAPSHOT/xbnjava-0.1.2-20140716.224928-1.pom --request PUT --data @pom.xml but got this error: Warning: Couldn't read data from file present in https://joinup.ec.europa.eu/nexus/content/repositories/releases/ point to an internal server and are not correctly rewritten to point to https://joinup.ec.europa.eu/nexus Login or register to post comments ActionsCreate an Issue Solution Assistant Add...News Item Community dig this

Error Deploying Artifact Failed To Transfer File Return Code Is 401

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 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. Show Peter Lynch added a comment - 12/12/16 06:19 PM An upstream Maven HTTP Wagon issues has been reported and fixed to prevent this on the Maven side: https://issues.apache.org/jira/browse/WAGON-469 Not sure Service tools Contact Search Glossary Help Analytics Disclaimer Current language: English (en) Additional tools Navigation path European Commission > ISA > Joinup > Projects > Joinup > Issue > Deploying nexus

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 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. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the Maven Deploy Username Password share|improve this answer edited Jul 18 '14 at 18:29 aliteralmind 11.1k63971 answered Jul 18 '14 at 17:54 Moe Singh 1356 I am aliteralmind.

Please proceed to close this ticket. Return Code Is 401 Reasonphrase Unauthorized Nexus If there is no error output, ensure your user privileges are correctly configured on the server. Show Peter Lynch added a comment - 11/14/16 09:53 PM Through a reverse proxy scenario, the 401 response from Nexus can trigger a 502 Bad Gateway response from the reverse proxy, Return code is: 401, ReasonPhrase: Unauthorized.

How to find all macOS applications which are not from the App Store? Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request Login or register to post comments #2 Posted by Philip Helger on October 03, 2014 at 20:08 Okay, in the meantime it works. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project standalone-pom: 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/): My observation was it's working if we install maven using apt-get install and it's not working if we unzip the maven tar and exported in $PATH. –Gangaraju Apr 5 '16 at

Return Code Is 401 Reasonphrase Unauthorized Nexus

Output: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building XBN-Java 0.1.3 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- build-helper-maven-plugin:1.8:attach-artifact (attach-artifacts) @ xbnjava --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ xbnjava --- [INFO] https://issues.sonatype.org/browse/NEXUS-10234 People Assignee: Joe Tom Reporter: Peter Lynch Last Updated By: Joe Tom Votes: 2 Vote for this issue Watchers: 11 Start watching this issue Dates Created: 05/16/16 01:31 PM Updated: 12/12/16 Error Deploying Artifact Failed To Transfer File Return Code Is 401 share|improve this answer answered Jul 18 '14 at 18:28 John 1,3841230 1 Unbelievable. Error Deploying Artifact Failed To Transfer File Return Code Is 400 Thanks, Bob.

Go to search box, by skipping navigation top bar. check over here Make sure your username/password is correct by logging into the Nexus UI. Uploading: http://localhost:8081/nexus/content/repositories/pippo/it/pigiuz/test/AutoDeploy/TestLibOne/1/TestLibOne-1.pom
ERROR: Failed to deploy artifacts: Could not transfer artifact it.pigiuz.test.AutoDeploy:TestLibOne:swc:1 from/to pippo (http://localhost:8081/nexus/content/repositories/pippo/): Failed to transfer file: http://localhost:8081/nexus/content/repositories/pippo/it/pigiuz/test/AutoDeploy/TestLibOne/1/TestLibOne-1.swc. 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 Hide Permalink Rich Seddon added a comment - 04/15/13 06:09 PM An SSL certificate error will not give you a 401 response. Return Code Is 401 Reasonphrase Unauthorized. Artifactory

It will tell you which repositoryId it is using: [DEBUG] (f) offline = false [DEBUG] (f) packaging = exe [DEBUG] (f) pomFile = c:\temp\build-test\pom.xml [DEBUG] (f) project = MavenProject: org.apache.maven:standalone-pom:1 @ Return code is: 401, ReasonPhrase: Unauthorized. You can check this by running mvn help:effective-settings. http://qaisoftware.com/return-code/nexus-return-code-401.html at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:317) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:245) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:413) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:139) ... 24 more Caused by: org.eclipse.aether.transfer.ArtifactTransferException: 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.

I've never used curl before, so I'm at a loss on what to do with this information. Mng-4469 The SSL problem was another I had, but 401 is 401, sorry. Code 401 - Unauthorized Either no login credentials were sent with the request, or login credentials which are invalid were sent.

If I change my PW in Joinup, will it than automatically be changed in Nexus?

  1. If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
  2. Any ideas would be appreciated.
  3. Browse other questions tagged maven nexus or ask your own question.
  4. I did not spend much time on it as it solves my problem.
  5. Blog at WordPress.com.
  6. Show Alberto Corral added a comment - 04/16/13 08:04 AM - edited Thanks Rich.
  7. Make sure your settings.xml is in the correct place (normally it’s _~/.m2/settings.xml).

at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1016) at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004) at org.eclipse.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:895) at org.eclipse.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:522) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:331) ... 26 more Caused by: org.apache.maven.wagon.TransferFailedException: 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] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project my-test: Failed to deploy artifacts: Could not transfer artifact org.bhavesh:my-test:jar:1.0-20140328.195302-1 from/to deployment1 (http://localhost:8081/nexus/content/repositories/snapshots/): Only 627 more to go. Error Deploying Artifact Failed To Transfer File Return Code Is 500 Checklist item 6.

I misspelled the password. If the server is using https but the URL in your POM is http, you might get 401 as well. Changing it to 0.1.0 ("earlier"), or 0.1.2a, or 0.1.3 ("later") results in the error I was dealing with before this one: –aliteralmind Jul 18 '14 at 18:46 [ERROR] Failed weblink 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

Post Reply Bookmark Topic Watch Topic New Topic Boost this thread! Also, I'm able to run the same maven build on this project from my workstation running windows and it deploys to the same nexus repository without a problem - it fails Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are Why are copper cables round?

Checking the "authorization and authentication" system feed in the Nexus UI can help narrow this down. If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. 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. share|improve this answer answered Dec 15 '13 at 0:04 Kelsey Francis 43137 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google

For example, this: ... sonatype-nexus-staging Nexus Staging Repository https://oss.sonatype.org/service/local/staging/deploy/maven2/ ... requires ... sonatype-nexus-staging your-jira-id your-jira-pwd ... Make sure your