Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0-alpha-6
-
None
-
None
Description
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.
Attachments
Issue Links
- is related to
-
MNG-4469 [regression] deploy:deploy-file fails with secured repository
- Closed