You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2009/02/19 06:52:19 UTC
[jira] Commented: (MNG-4044) Misleading error messages when local
repository is not writable
[ http://jira.codehaus.org/browse/MNG-4044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=166186#action_166186 ]
Brett Porter commented on MNG-4044:
-----------------------------------
Wagon is correctly throwing a TransferFailedException - in 2.1.0-M2-SNAPSHOT, you can use -X to reveal the error "Specified destination directory cannot be created". The problem is that Maven is tossing out the message from that exception in the resolution process.
> Misleading error messages when local repository is not writable
> ---------------------------------------------------------------
>
> Key: MNG-4044
> URL: http://jira.codehaus.org/browse/MNG-4044
> Project: Maven 2
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 2.1.0-M1
> Environment: Linux - Ubuntu 8.04 Server - JDK Sun 1.6.0_06 - Maven 2.0.9
> Reporter: Clement Denis
> Priority: Minor
> Fix For: 2.0.x
>
> Attachments: unwritable_local_repository.txt
>
>
> When the local repository is not writable, the error messages when downloading an artifact does not allow to pin down the issue quickly.
> Maven only reports that the artifact cannot be downloaded, and the root cause is displayed as :
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
> No message in the trace indicates a problem with the local repository.
> The full trace with a clean local repository is attached.
--
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