Register output from JJTree/JTB as a distinct compile source root
-----------------------------------------------------------------
Key: MJAVACC-89
URL: http://jira.codehaus.org/browse/MJAVACC-89
Project: Maven 2.x JavaCC Plugin
Issue Type: Improvement
Components: jjtree, jtb
Affects Versions: 2.4.1
Reporter: Benjamin Bentmann
IDEA's Maven integration currently treats all directories of the pattern
{{target/generated-sources/dir}} as a compile source root regardless whether
the corresponding Maven plugin actually registered this directory with the POM
for compilation
([IDEADEV-31529|http://www.jetbrains.net/jira/browse/IDEADEV-31529]). Given the
current design of the JavaCC plugin where the output from JJTree/JTB is present
both in the interim directory and the output directory, usage of the default
values for the plugin configuration will cause duplicate class errors with IDEA.
To get "convention over configuration" back in order, the plugin should simply
register the interim directory as a compile source root, too, just like IDEA
expects from the directory pattern. That would not only help IDEA users but
seems sensible in general to more clearly express which tool generated which
output file (e.g. to enable users to properly address tool authors for bug
reports).
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email