You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2016/05/18 09:10:12 UTC

[jira] [Updated] (FELIX-5241) Files generated by a java annotationprocessor are not added to the jar

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

Carsten Ziegeler updated FELIX-5241:
------------------------------------
    Fix Version/s:     (was: maven-bundle-plugin-3.0.2)
                   maven-bundle-plugin-3.1.0

> 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.1.0
>
>
> 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)