Maven Shared Components (moved to ASF)
  1. Maven Shared Components (moved to ASF)
  2. MSHARED-128

Exceptions thrown by org.apache.maven.shared.jar.JarAnalyzer constructor should include pathname of the offending file

    Details

    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      A corrupted jar file in the repository, or an attempt to use classes directory in place of a jar during a build is tricky do diagnose, because the exception message does not reveal which file could not been opened.

      The attached patch includes the pathname in the exception message.
      JarAnalyzerTest was enhanced accordingly.

        Issue Links

          Activity

            People

            • Assignee:
              Olivier Lamy
              Reporter:
              Rafal Krzewski

              Dates

              • Created:
                Updated:
                Resolved: