Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Metamodel generation with Maven

I managed to make it work and wrote a blog about it


2010/5/27 Antonio Goncalves <antonio.mailing@xxxxxxxxx>
Hi all,
I'm using EclipseLink 2.0.1 to generate entities metamodel so I can use the new Criteria API. I've setup Intellij Idea annotation processing and everything works fine. Now, I need to industrialize the metamodel generation with Maven and I can't make it work. I'm using the apt-maven-plugin as follow :
                <configuration>                    <factory>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor</factory>
The problem is that the APT plugin needs an implementation of AnnotationProcessorFactory, so when I run Maven I have the following :
[WARNING] warning: Specified factory, 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor', is not an AnnotationProcessorFactory.
[WARNING] warning: No annotation processors found but annotations present.
And, indeed, CanonicalModelProcessor doesn't implement AnnotationProcessorFactory.
Does anybody know how to generate metamodel classes with Maven ? Am I using the right plugin (APT) ?

Antonio Goncalves (antonio.goncalves@xxxxxxxxx)
Software architect

Web site :
Paris JUG leader :

Back to the top