[ http://jira.codehaus.org/browse/MJAR-40?page=comments#action_79263 ]
Richard van der Hoff commented on MJAR-40:
------------------------------------------
Hrm, it seems I got this wrong in the case where the project doesn't have any
dependencies; it's a long story, but basically the indexing code tries to open
{{target/classes}} as a zip file, and fails.
The list returned by {{project.getRuntimeClasspathElements()}} includes
{{target/classes}}; it's incorrect to add this as a ConfiguredIndexJar to the
archiver.
I can't really be doing with preparing a patch for this - if you don't have any
dependencies, you can disable the 'Class-Path' in the manifest, which works
around the bug.
> Incomplete jar indexes
> ----------------------
>
> Key: MJAR-40
> URL: http://jira.codehaus.org/browse/MJAR-40
> Project: Maven 2.x Jar Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: maven-archiver up to version 2.0.6; plexus-archiver up
> to version 1.0-alpha-6
> Reporter: Richard van der Hoff
> Assigned To: John Casey
> Fix For: 2.1
>
> Attachments: jar-index-bug.zip
>
>
> When creating a jar with an index, and a 'Class-Path' in the manifest, the
> index should include a list of all the classes in the other jars too - see
> http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#JAR%20Index.
> The attachment contains a testcase which demonstrates a ClassCastException in
> the plexus-archiver; a fix to that, and a fix to the maven-archiver to make
> it actually use the fixed code.
--
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