[ 
https://issues.apache.org/jira/browse/OPENJPA-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153006#comment-18153006
 ] 

ASF subversion and git services commented on OPENJPA-2734:
----------------------------------------------------------

Commit 4ee7159c2790a46893e5ea7c5e5793ffef5e476b in openjpa's branch 
refs/heads/OPENJPA-2734 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=4ee7159c2 ]

[OPENJPA-2734] Register the metamodel annotation processor in 
openjpa-persistence

The service file for AnnotationProcessor6 was only in the aggregate openjpa
jar, so javac did not find the processor with the individual jars. Move it
to openjpa-persistence, where the processor lives; the shade plugin merges it
into openjpa.jar and openjpa-all.jar as before. Compile openjpa-persistence
itself with proc=none, since javac would find the service file in
target/classes before the processor is compiled. Do not claim the JPA
annotations when metamodel generation is not enabled, so other processors
still get them.


> Annotation processor is not registered in openjpa-persistence
> -------------------------------------------------------------
>
>                 Key: OPENJPA-2734
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2734
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: build / infrastructure
>    Affects Versions: 2.4.2
>            Reporter: Pawel Veselov
>            Assignee: Richard Zowalla
>            Priority: Major
>
> When using individual component jars, there is no declared annotation 
> processor, so it has to be specified explicitly. I think it can be safely 
> declared in openjpa-persistence jar, where the processor is present.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to