Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-72

"IllegalArgumentException: Cannot accept visitor on URL" when project contains a non-jar (e.g. zip) dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha-3
    • 2.0-alpha-4
    • analyze
    • None

    Description

      (Package: org.apache.maven.shared.dependency.analyzer)
      DefaultProjectDependencyAnalyzer.buildArtifactClassMap(MavenProject) calls MavenProject.getArtifacts() and then passes the results of artifact.getFile().toURL() to DefaultClassAnalyzer.analyze(URL). This calls ClassFileVisitorUtils.accept(URL, ClassFileVisitor), which has some fairly restrictive requirements about what URLs it can receive.

      The end result of this is that if you have a project with a non-jar type of dependency, Maven dies with an IllegalArgumentException

      Attachments

        1. pom.xml
          0.4 kB
          Arne Degenring

        Issue Links

          Activity

            People

              brianf Brian E Fox
              maxb Max Oliver Bowsher
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: