Apache Felix Maven plugin not working

Simple Here is the felix plugin in 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 does not 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 incorrect.

Please tell me why.

+4
source share
1 answer

Maybe a little late, but one day I had a similar problem. I decided by adding <packaging>bundle</packaging> to the POM.

+3
source

Source: https://habr.com/ru/post/1438153/


All Articles