You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2007/04/11 20:10:46 UTC

[jira] Commented: (MDEP-72) "IllegalArgumentException: Cannot accept visitor on URL" when project contains a non-jar (e.g. zip) dependency

    [ http://jira.codehaus.org/browse/MDEP-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92584 ] 

Brian Fox commented on MDEP-72:
-------------------------------

I opened MDEP-81 to handle the missing /target folder.

> "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
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-4
>
>         Attachments: pom.xml
>
>
> (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