I think in my case it is due to a self-signed ssl (apache inverse proxy) used in my nexus. 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, Return code is: 401
Then check your pom.xml if the site-id in the distribution-section of the pom.xml matches any server-id setting in your settings.xml. What is plausible biology of ocean-dwelling, tool-using, intelligent creatures? http://jscience.net/return-code/return-code-12-reason-code-49.html
Since the 401 Unauthorized error is nebulous and unhelpful--and is normally associated to user/pass problems--it's no surprise that I was unable to figure this out on my own. As a result, I've received many questions from users, and a large amount of them is about '401'. Solved my issue –Dhiral Pandya Jun 26 '15 at 10:55 Worked for me too! –Igor Baiborodine Mar 16 at 20:24 add a comment| up vote 2 down vote Some Hide Permalink Alberto Corral added a comment - 04/16/13 08:04 AM - edited Thanks Rich.
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. Need a better layout, so that blank space can be utilized Which process is `/proc/self/` for? Checking the "authorization and authentication" system feed in the Nexus UI can help narrow this down. Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request I does not make any changes to the installed nexus.
Here is my POM.
If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. Artifactory Not Authorized , Reasonphrase:unauthorized. Personal loan to renovate my mother's home Encryption in the 19th century When to use the emergency brake in a train? If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. 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
This cannot work. have a peek at these guys Maven claims it connects to libs-snapshot-local as admin: sing connector WagonRepositoryConnector with priority 0 for http://192.168.1.16:8081/artifactory/libs-snapshot-local as admin But uploads the file as anonymous. That drives Maven crazy in some unpredicted ways (Maven good in that). Word that means "to fill the air with a bad smell"? Maven Deploy Username Password
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. 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! Doing that fixed this issue for me. check over here 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
Please proceed to close this ticket. Mng-4469 Show Rich Seddon added a comment - 04/15/13 06:09 PM An SSL certificate error will not give you a 401 response. pom.xml:
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
All rights reserved. Pages Home Family George Tweet Share July 30, 2010 Maven/Nexus Failed to transfer file: Return code is: 401 If you ever get the following error Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer Would someone help me? [ERROR] 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 no t transfer artifact org.bhavesh:my-test:jar:1.0-20140326.192116-1 from/to deploy ment (http://localhost:8081/nexus/content/repositories/snapshots/): Failed to this content share|improve this answer answered Jul 18 '14 at 18:28 John 1,3841230 1 Unbelievable.
Excerpt from pom.xml:
Make sure your username/password is correct by logging into the Nexus UI. Not the answer you're looking for? It seems that 0.1.2-SNAPSHOT, which is already created, interferes with my new 0.1.2 version, as you suggest. Is the Nintendo network ban tied to NNID or the console?
Thanks & Regards Senthil Kumar C Show Senthil Kumar Chandran added a comment - 06/05/12 10:33 AM Got it! Query Which Profiles Have Read Access To Specific Object? One thing to note is that the log on the Artifactory server does not log anything when the error occur. why is Newton's method not widely used in machine learning?
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) asked 3 years ago viewed 5390 times active 2 years ago Related 2How to manage artifactory / maven artifact using different profiles1Artifactory is not caching the maven-metadata.xml file0How to clean versioned
© 2017 jscience.net