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

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

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


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

        

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

Posted by "Justin Edelson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=211628#action_211628 ] 

Justin Edelson commented on MNG-4571:
-------------------------------------

oh? because this is a largish multi-module project and upgrading to 2.5 throughout the whole project *right now* isn't trivial. so any solution which can be run from the command line would be great.

> 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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=211633#action_211633 ] 

Benjamin Bentmann commented on MNG-4571:
----------------------------------------

Ideally, all those modules should inherit from a few common parents where you would use pluginManagement to lock down the desired plugin versions.

> 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

        

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

Posted by "Justin Edelson (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=211640#action_211640 ] 

Justin Edelson commented on MNG-4571:
-------------------------------------

Right, but that means releasing the parent which has references to some snapshot plugins which are part of the project. So it really means:
1) releasing the plugins
2) releasing the parent
3) updating the poms to the newly released parent

it's doable, but not right now because #1 isn't quite ready to be released.

> 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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

       Resolution: Fixed
    Fix Version/s: 3.0-alpha-7

Fixed in [r917058|http://svn.apache.org/viewvc?view=revision&revision=917058].

> 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
>             Fix For: 3.0-alpha-7
>
>
> 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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann reopened MNG-4571:
------------------------------------


I have an idea...

> 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

        

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

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl updated MNG-4571:
-------------------------------

    Fix Version/s: 3.0-alpha-7

> 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
>             Fix For: 3.0-alpha-7
>
>
> 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