I'm trying to build a bundle that has an index (META-INF/INDEX.LIST
) using maven-bundle-plugin
2.3.7.
My plugin configuration looks like this
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<archive>
<index>true</index>
</archive>
<instructions>
<!-- other things like Import-Package -->
<Include-Resource>{maven-resources}</Include-Resource>
</instructions>
</configuration>
</plugin>
but META-INF/INDEX.LIST
will not show up in the JAR. I tried to use
<Include-Resource>{maven-resources},META-INF/INDEX.LIST</Include-Resource>
but that will fail with
[ERROR] Bundle com.acme:project::bundle:1.0.0-SNAPSHOT : Input file does not exist: META-INF/INDEX.LIST
[ERROR] Error(s) found in bundle configuration
which is not surprising because META-INF/INDEX.LIST
is not in target/classes
but dynamically generated by the Maven Archiver.
Edit 1
When I use jar
instead of bundle
packaging then the index is there.
Edit 2
I'm using Maven 3.0.4