[ 
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

        

Reply via email to