jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-4044

Misleading error messages when local repository is not writable

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 2.1.0-M1
  • Fix Version/s: None
  • Component/s: Artifacts and Repositories
  • Labels:
    None
  • Environment:
    Linux - Ubuntu 8.04 Server - JDK Sun 1.6.0_06 - Maven 2.0.9
  • Complexity:
    Intermediate

Description

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    unwritable_local_repository.txt
    04/Sep/08 5:53 AM
    6 kB
    Clement Denis

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MNG-4578 Missing local repository results in ResourceNotFoundException while resolving artifact(s), parent

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.
relates to

Improvement - An improvement or enhancement to an existing feature or task. MNG-3794 Improve error logging when downloading depedencies

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 18/Feb/09 11:51 PM

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.

Show
Brett Porter added a comment - 18/Feb/09 11:51 PM 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.

People

  • Assignee:
    Brett Porter
    Reporter:
    Clement Denis
Vote (1)
Watch (0)

Dates

  • Created:
    04/Sep/08 5:53 AM
    Updated:
    03/Mar/10 9:08 AM
    Resolved:
    19/Feb/09 6:34 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.