[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] JPA 2 metamodel Generation
|
Interesting... apparently maven-compiler-plugin does support annotation
processing out of the box. Feel free to open enhancement request to add
this to m2e, but somebody will have to provide a quality patch for this
to happen before m2e 1.0. It should be possible to add this support via
external m2e extension, so the patch does not have to change the core.
--
Regards,
Igor
On 11-01-21 04:30 AM, Naresh Bhatia wrote:
Igor,
I am attaching a complete standalone example. Just run mvn test from the
command line and everything works fine - you will see generated code
in target\generated-sources. However if you bring up the project in
Eclipse, the ArtistRepository class will have two errors because the
generated code is not visible.
Thanks.
Naresh
On Thu, Jan 20, 2011 at 10:23 PM, Igor Fedorenko <igor@xxxxxxxxxxxxxx
<mailto:igor@xxxxxxxxxxxxxx>> wrote:
Complete standalone sample project would be useful here.
I am guessing somebody will have to develop what we call "project
configurator" before this will work inside m2e, but I want to make sure
I am not missing anything.
--
Regards,
Igor
On 11-01-20 09:59 PM, Naresh Bhatia wrote:
I need to generate the JPA 2 metamodel for the entities in my
project.
After adding the following dependency, maven stared generating the
metamodel quite easily from the command line:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>1.1.1.Final</version>
</dependency>
However, the corresponding Eclipse project (generated using
m2eclipse)
does not seem to generate sources. I tried to update the project
configuration through Eclipse, but that did not work. What do I
need to
do to make this work in m2eclipse?
Reading the instructions
<http://docs.jboss.org/hibernate/jpamodelgen/1.0/reference/en-US/html_single/#d0e319>
at the hibernate site, I tried to enable annotation processing
and add
the Hibernate Metamodel Generator to the factory path. This started
generating the metamodel, but Eclipse started going into an infinite
loop trying to compile the sources. So this didn't work either.
Can someone please help me with this issue? I am using m2eclipse
version
0.12.1.
Thanks.
Naresh
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx <mailto:m2e-users@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users