Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Felix Maven Plugin Not Working

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.

like image 258
rb8680 Avatar asked Oct 06 '12 12:10

rb8680


1 Answers

Maybe a bit late, but I had a similar problem once. I solved by adding <packaging>bundle</packaging> to the POM.

like image 69
DevJimbo Avatar answered Oct 15 '22 02:10

DevJimbo