org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor not found

Hello,
We have Maven projects with Eclipselink 2.5.1 integration. Unit tests using Intellij stop working for me with error "Error:java: error: Annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' not found". But it worked for me with Eclipselink 2.3 and still working using maven commands.
May be somebody have solution for this issue?

4 comments

In addition, I have Annotation Processor set as org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor for corresponding modules.

0

Please check settings controlling where the processor is to be found. In case this is "compiler classpath", the jar with properly packaged annotation processor (registered in META-INF directory), should be present in module's compilation claspath

0

This didn't helps me with IntelliJ 113.1.2 even if direct processor path had been specified (for ex., WEB-INF\lib\eclipselink-2.5.1.jar).
I'm still have Error:java: error: Annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' not found

0

Please check that full path is specified to this jar and that this jar really contains proper processor registration: the resource
META-INF/services/javax.annotation.processing.Processor with content "org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor"
If this is not the case, such compiler behaviour is as expected.

0

Please sign in to leave a comment.