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

                 Key: MDEP-72
                 URL: http://jira.codehaus.org/browse/MDEP-72
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: analyze
    Affects Versions: 2.0-alpha-3
            Reporter: Max Bowsher
         Assigned To: Brian Fox


(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

-- 
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

        

Reply via email to