Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-464

confusing error reported when using a non writable local directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-alpha-3
    • 2.2.1
    • None

    Description

      I was trying to share a repository between 2 users, and tried to do so before setting the repository permissions correctly.
      user1 created the repository
      user2 tried to do a build without having write access to repository

      the build failed with a confusing error. Something like:

      Caused by: java.io.FileNotFoundException: /usr/local/tools/share/m2/org/codehaus/cargo/cargo/0.6-SNAPSHOT/cargo-0.6-SNAPSHOT.version.txt (No such file or directory)

      (I don't have the exact log unfortunately, but it shouldn't be too hard to reproduce)

      I think a previous failure (e.g. couldn't write in a directory) was silently discarded. That error if treated appropriately could help better diagnose the issue.

      Attachments

        1. MNG-464-maven-artifact-manager.patch
          0.7 kB
          Edwin Punzalan

        Activity

          People

            elpunzalan Edwin Punzalan
            lacostej Jerome Lacoste
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: