Home > Return Code > Apache Archiva Return Code Is 401

Apache Archiva Return Code Is 401

Contents

up vote 50 down vote favorite 10 Why am I getting a "401 Unauthorized" error in Maven? 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 I tried and rechecked everything. At what point is brevity no longer a virtue? his comment is here

In Nexus, this means the Nexus server asks you log in first before doing things like deploying artifacts. java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL ifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE xecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) Remember, nothing changed in Archiva, the OS, or the project. There are hundreds of projects using this great service.

Return Code Is: 401, Reasonphrase: Unauthorized. Nexus

Return code is: 401        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94)        at hudson.maven.reporters.MavenArtifactRecord.deploy(MavenArtifactRecord.java:119)        at hudson.maven.reporters.MavenAggregatedArtifactRecord.deploy(MavenAggregatedArtifactRecord.java:79)        at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:214)        at hudson.model.TaskThread.run(TaskThread.java:126) Caused by: The SNAPSHOTS repository (as opposed to the releases repository) allows you to overwrite a similarly numbered version, but your version number should have "-SNAPSHOT" at the end of it. 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| http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them.

You can > find more info here > > > As for your second question, I am not sure I understood but just to cover > all options , Artifactory I'm guessing that will fail with the same error showing the permissions are incorrect. at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:613) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:509) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:490) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:470) at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811) ... 15 more I have the creds in the settings.xml file: snapshots deployment deployment Not sure why this all Artifactory Not Authorized , Reasonphrase:unauthorized. Why do shampoo ingredient labels feature the the term "Aqua"?

At what point is brevity no longer a virtue? If you are receiving a 401 it is because maven is sending the wrong login credentials, or no credentials at all. 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 { Does Actifactory can take care of both release and snapshort artifacts? >> 2.

I just ran into the same symptom and have overcome with your new user fix. Maven Deploy Username Password Ultimate Australian Canal Bash remembers wrong path to an executable that was moved/deleted more hot questions question feed default about us tour help blog chat data legal privacy policy work here Thanks, Bob. If curl is installed on your machine, you can try deploying an artifact with a command like this: curl -u juven-test:****** https://oss.sonatype.org/service/local/staging/deploy/maven2/com/ juvenxu/ossrh-test/1.1/ossrh-test-1.1.pom --request PUT --data @pom.xml If there is no

Error Deploying Artifact Failed To Transfer File Return Code Is 401

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 (http://192.168.1.16:8081/artifactory/libs-snapshot-local): Failed to transfer Return code is: 401, ReasonPhrase: Unauthorized. Return Code Is: 401, Reasonphrase: Unauthorized. Nexus http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users linzhang Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: mvn deploy on Return Code Is 401 Reasonphrase Unauthorized. Artifactory Does Actifactory can take care of both release and snapshort artifacts? 2.

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 http://blackplanetsupport.com/return-code/return-code-from-ftp-is-10.html M2Eclipse is a trademark of the Eclipse Foundation. If you control the Archiva server, perhaps you should reset your password. –Mark O'Connor Dec 30 '12 at 0:32 I used help:effective-settings and it printed out the settings I How can I solve this integer equation with Mathematica? Error Deploying Artifact Failed To Transfer File Return Code Is 400

As a result, I've received many questions from users, and a large amount of them is about '401'. asked 2 years ago viewed 1738 times active 4 months ago Related 4Resolving SNAPSHOT dependencies with timestamps from Ivy1Problem with m2eclipse — unable to download maven artifacts from Archiva — get Anyone any ideas / workarounds? weblink Return code is: 401 [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Failed to transfer file: http://vbase.xyz.com/artifactory/repo/itext/itext/2.0.4/itext-2.0.4.jar.

Join them; it only takes a minute: Sign up why can't i upload artifact to archiva (Unauthorized), but i can download from it with admin user? Failed To Deploy Artifacts Could Not Transfer Artifact Return Code Is 400 Reasonphrase Bad Request Includes the third-party code listed here. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.

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 xbnjava: 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/):

I created a 3rd user in Archiva, and set it so the user didn't have to change their password on 1st login. I believe my privileges are properly installed, as I received this message from sonatype: Configuration has been prepared, now you can: Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots Deploy release artifacts into 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: Maven Could Not Transfer Artifact Not Authorized Linked ApplicationsLoading… DashboardsProjectsIssuesCaptureGetting startedAgile Help Online Help JIRA Agile Help Keyboard Shortcuts About JIRA JIRA Credits Log In Export Tools Dev - NexusNEXUS-5073Return code is: 401, ReasonPhrase:Unauthorized.Agile Board ExportXMLWordPrintable Details Type:

Solved my issue –Dhiral Pandya Jun 26 '15 at 10:55 Worked for me too! –Igor Baiborodine Mar 16 '16 at 20:24 add a comment| up vote 2 down vote The general definition of '401' can be bound at the HTTP RFC. 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! check over here If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies.

Post Reply Bookmark Topic Watch Topic New Topic Boost this thread! Return code is: 401, ReasonPhrase:Unauthorized. Thanks so much for helping! :D –Eric Han Dec 27 '13 at 8:54 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Try JIRA - bug tracking software for your team.

http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Artifactory-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/artifactory-users ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. That drives Maven crazy in some unpredicted ways (Maven good in that). 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 Understand >> > malware threats, the impact they can have on your business, and how you >> > can protect your company and customers by using code signing. >> > http://p.sf.net/sfu/oracle-sfdevnl>>

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. The only change was updating the Jenkins.war to the latest. If that doesn't help, running with '--debug' will give you a lot more information. Compiling multiple LaTeX files Are airlines obliged to notify ticket cancellations due to no-shows?

I can suggest you copying the respective snippets from repository page in Artifactory: share|improve this answer answered Dec 26 '13 at 19:45 JBaruch 12.7k3265 Hi! I love Pulak's suggestion of using the "help:effective-settings plugin to troubleshoot this problem. Return code is: 401 > > at > > org.apache.maven.artifact.deployer.DefaultArtifactDeployer.dep > > loy(DefaultArtifactDeployer > > .java:94) > > at > > org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFi > > leMojo.java:239)