Simple. Here is the felix plugin in the maven pom.xml:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<!-- allows the route to be ran via 'mvn camel:run' -->
<!-- <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId>
<version>2.10.1</version> </plugin> -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>xyz</Bundle-SymbolicName>
<Export-Package>tutorial.simplerouter</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>`
and it doesn't generate the MANIFEST.MF file properly:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: rb
Build-Jdk: 1.6.0_35
Above the generated manifest.mf which is not correct.
Please tell me why.
Maybe a bit late, but I had a similar problem once. I solved by adding <packaging>bundle</packaging>
to the POM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With