[
http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-45?page...
]
Artem Troitskiy edited comment on METAGEN-45 at 11/2/10 10:05 AM:
------------------------------------------------------------------
What's about OS, I get this problem on Windows XP with JDK 1.6.0_21. I also checked on
Ubuntu 9.4 with JDK 1.6.0_16 and got the same behaviour even with older versions of
maven-compiler-plugin.
was (Author: axtavt):
What's about OS, I get this problem on Windows XP with JDK 1.6.0_21. I also
checked on Ubuntu 9.4 with JDK 1.6.0_16 and got the same bahaviour even with older
versions of maven-compiler-plugin.
Generated metamodel sources are not compiled in JDK 6
-----------------------------------------------------
Key: METAGEN-45
URL:
http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-45
Project: Hibernate Metamodel Generator
Issue Type: Bug
Components: processor
Affects Versions: 1.0.0.Final, 1.1.0.CR1
Environment: jdk 1.6.0_22, maven-compiler-plugin 2.2+, Eclipse 3.5+
Reporter: Artem Troitskiy
Assignee: Hardy Ferentschik
I tried to generate metamodel classes during maven build as described in the
documentation (using automatic annotation processing in JDK 6) and noticed that metamodel
source files are generated but not compiled. I also see the same problem when I try to
configure metamodel generation in Eclipse as described in the documentation.
Googling around showed that many people face the same problem in both maven and Eclipse.
Further investigation showed that:
* Generated sources are compiled by maven when version of maven-compiler-plugin is below
2.2, and not compiled otherwise.
* This behaviour is related to {{TODO}} in
{{org/hibernate/jpamodelgen/test/util/CompilationTest.java}} - if I remove the second
compilation phase there, tests fail for the very same reason.
* Currently annotation processor generates metamodel sources at the final round of
annotation processing. However, when I modify
{{org/hibernate/jpamodelgen/JPAMetaModelEntityProcessor.java}} to generate metamodel at
the first round, tests pass and everything works fine in maven and Eclipse. It looks like
sources generated at the final round are not compiled.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira