I have a minimal maven2 parent project with a single submodule that
only contains one package com.test with a single class. I am trying to
use Felix to build the submodule as a bundle:

<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <parent>
                <artifactId>logTest</artifactId>
                <groupId>com.minimal</groupId>
                <version>1.0.0</version>
        </parent>
        <groupId>com.minimal</groupId>
        <artifactId>logTest-sub</artifactId>
        <version>1.0.0</version>
        <name>Log test submodule</name>
        <packaging>bundle</packaging>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                                <version>1.4.0</version>
                                <extensions>true</extensions>
                                <configuration>
                                        <instructions>
                                                
<Export-Package>com.test</Export-Package>
                                                
<Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
                                                
<Bundle-Name>${pom.name}</Bundle-Name>
                                                
<Bundle-Version>1.0.0</Bundle-Version>
                                        </instructions>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>org.osgi.core</artifactId>
                        <version>1.0.0</version>
                </dependency>
        </dependencies>
</project>


After running mvn clean install I get the following MANIFEST file in
the jar file:

Manifest-Version: 1.0
Export-Package: com.test
Bundle-Version: 1.0.0
Build-Jdk: 1.6.0_21
Built-By: mort
Tool: Bnd-0.0.238
Bnd-LastModified: 1279883880970
Bundle-Name: Log test submodule
Bundle-ManifestVersion: 2
Created-By: Apache Maven Bundle Plugin
Import-Package: com.test
Bundle-SymbolicName: com.minimal.logTest-sub


which looks fine. But when I add it to the target platform in eclipse
and create a PDE project the package com.test is not visible.

Any ideas why this bundle (actually the package com.test) does not
show up in the Plug-in Dependencies?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to