sonatype/plexus-compiler — pull request #2 by aaronlabella (2011-12-19 22:29:59+00:00)
Title: .class file fix for SourceFile in plexus-compiler-eclipse

Please pull this fix, the .class files generated by the plexus-complier-eclipse do *not* adhere to the sun class file spec.

http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#79868

The use case here is, try to have an eclipse IDE lookup the source, or set a debugger breakpoint for a maven dependency that is *not* in the workspace. If that dependency was compiled by the plexus-compiler-eclipse plugin, then eclipse will never be able to correlate the .class file using the SourceFile attribute because it does not adhere to the spec. You can easily compare the .class files generate by javac to those generate by this plugin and see that the SourceFile attributes do not match.

This bug addresses the following JIRA:

http://jira.codehaus.org/browse/MCOMPILER-142

Ideally, we could release 1.8.3 of the plexus-compiler-plugin as soon as possible because this fix is critical to our projects, and I've currently deployed it to a temporary plugin-repository within our internal central Maven repository instance.

Thank you for your time and consideration.

Aaron LaBella
Certified IT Specialist
IBM