felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-5241) Files generated by a java annotationprocessor are not added to the jar
Date Tue, 26 Apr 2016 10:44:12 GMT

     [ https://issues.apache.org/jira/browse/FELIX-5241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Schneider updated FELIX-5241:
---------------------------------------
    Description: 
It seems that files created by java annotation processors are not included in the jar by the
maven-bundle-plugin while they are included by the standard maven jar packaging.

In karaf-boot we use standard java annotation processors to generate files at runtime.

Oner such processor is:
https://github.com/jbonofre/karaf-boot/tree/master/starters/karaf-boot-starter-jpa
It parses the @PersistentContext annotation and creates a persistence.xml file.
This is an example project that uses it:
https://github.com/jbonofre/karaf-boot/tree/master/samples/jpa

To test this remove the karaf-boot-maven-plugin (which calls the maven bundle plugin) and
the META-INF/persistence.xml is added to the jar.
Add the default maven-bundle-plugin and the persistence.xml is not added to the jar.

I can create a simpler test project if this is too complicated.


  was:
In karaf-boot we use standard java annotation processors to generate files at runtime.

Oner such processor is:
https://github.com/jbonofre/karaf-boot/tree/master/starters/karaf-boot-starter-jpa

It parses the @PersistentContext annotation and creates a persistence.xml file.

This is an example file that uses it:


> Files generated by a java annotationprocessor are not added to the jar
> ----------------------------------------------------------------------
>
>                 Key: FELIX-5241
>                 URL: https://issues.apache.org/jira/browse/FELIX-5241
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-3.0.1
>            Reporter: Christian Schneider
>             Fix For: maven-bundle-plugin-3.0.2
>
>
> It seems that files created by java annotation processors are not included in the jar
by the maven-bundle-plugin while they are included by the standard maven jar packaging.
> In karaf-boot we use standard java annotation processors to generate files at runtime.
> Oner such processor is:
> https://github.com/jbonofre/karaf-boot/tree/master/starters/karaf-boot-starter-jpa
> It parses the @PersistentContext annotation and creates a persistence.xml file.
> This is an example project that uses it:
> https://github.com/jbonofre/karaf-boot/tree/master/samples/jpa
> To test this remove the karaf-boot-maven-plugin (which calls the maven bundle plugin)
and the META-INF/persistence.xml is added to the jar.
> Add the default maven-bundle-plugin and the persistence.xml is not added to the jar.
> I can create a simpler test project if this is too complicated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message