[ https://jira.codehaus.org/browse/MRELEASE-569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MRELEASE-569. ----------------------------------- Resolution: Not A Bug Assignee: Robert Scholte I've found the place where the exception is thrown: [DefaultArtifactDeployer|http://maven.apache.org/ref/2.2.1/maven-artifact-manager/xref/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.html#119] This is part of the Maven distribution. IMO a plugin shouldn't try to analyze the exception but just (re)throw it as received. The {{ArtifactDeployer}} has been rewritten for Maven 3 since the introduction of Aether. Maybe the message has improved. Anyhow, it's not a {{maven-release-plugin}} bug. > Inadequate explanation of "BUILD ERROR: .... Return Code is 401" > ---------------------------------------------------------------- > > Key: MRELEASE-569 > URL: https://jira.codehaus.org/browse/MRELEASE-569 > Project: Maven 2.x Release Plugin > Issue Type: Improvement > Reporter: Paul Hammant > Assignee: Robert Scholte > > That this return code (and perhaps all return codes) are HTTP response codes > is not clear. > I lack authority to the remote directory apparently. > [INFO] [deploy:deploy {execution: default-deploy}] > Uploading: > http://oss.sonatype.org/service/local/staging/deploy/maven2//javax/inject/javax.inject-tck/1/javax.inject-tck-1.jar > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error deploying artifact: Failed to transfer file: > http://oss.sonatype.org/service/local/staging/deploy/maven2/javax/inject/javax.inject-tck/1/javax.inject-tck-1.jar. > Return code is: 401 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira