BundlePlugin fails in combination with apt-plugin
-------------------------------------------------

                 Key: FELIX-1240
                 URL: https://issues.apache.org/jira/browse/FELIX-1240
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-2.0.0
            Reporter: Kristian Koehler


Hi 

in our maven build we use the apt-maven-plugin to generate some resources. 
These resources should be included in the resulting bundle jar file. 

Running maven with 'clean install' works great, but running 'mvn compile 
install' fails with a exception like:

--- 8< ---
[INFO] [bundle:bundle]
[ERROR] Error building bundle A:B:bundle:1.3.0-SNAPSHOT : Input file does not 
exist: target/generated-sources/apt/META-INF/myfile~
[ERROR] Error(s) found in bundle configuration
--- 8< ---

The file name is 'myfile' and not 'myfile~'!

The '~' gets appended within the BND implementation if there are duplicate 
haeder entries for the bundle file (in this case Include-Resource) to make them 
unique.
These duplicate entries are generated within the bundle-plugin.

I will attach a patch for this.

Kristian


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to