You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/02/25 15:38:55 UTC

[jira] Closed: (MNG-4571) mvn deploy -DaltDeploymentRepository errors out

     [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4571.
----------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 3.0-alpha-7)
         Assignee: Benjamin Bentmann

This is a bug in the maven-deploy-plugin:2.4 (improper use of repository APIs), you'll need to update the version 2.5 to use altDeploymentRepository.

> mvn deploy -DaltDeploymentRepository errors out
> -----------------------------------------------
>
>                 Key: MNG-4571
>                 URL: http://jira.codehaus.org/browse/MNG-4571
>             Project: Maven 2 & 3
>          Issue Type: Bug
>    Affects Versions: 3.0-alpha-6
>         Environment: Apache Maven 3.0-alpha-6 (r896384; 2010-01-06 06:00:46-0500)
> Java version: 1.6.0_17
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"
>            Reporter: Justin Edelson
>            Assignee: Benjamin Bentmann
>
> With version <= 2.2.1, I can do:
> mvn -DaltDeploymentRepository=<reponame>::default::<url> deploy
> and get a project's artifacts deployed into my 3rd party snapshot repo.
> However, with 3.0-alpha-6:
> [INFO] --- maven-deploy-plugin:2.4:deploy (default-deploy) @ maven-sling-plugin ---
> [INFO] Using alternate deployment repository <reponame>::default::<url>
> [INFO] Retrieving previous build number from <reponame>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5.692s
> [INFO] Finished at: Thu Feb 25 09:23:05 EST 2010
> [INFO] Final Memory: 12M/264M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy (default-deploy) on project maven-sling-plugin: Error retrieving previous build number for artifact 'org.apache.sling:maven-sling-plugin:maven-plugin': repository metadata for: 'snapshot org.apache.sling:maven-sling-plugin:2.0.5-SNAPSHOT' could not be retrieved from repository: <reponame> due to an error: Error transferring file: Server returned HTTP response code: 401 for URL: <url>org/apache/sling/maven-sling-plugin/2.0.5-SNAPSHOT/maven-metadata.xml -> [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 -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> (obviously, <reponame> and <url> have been subbed in here for the actual values)
> I'm using plain text passwords in ~/.m2/settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira