Hi guys

I'm trying to use the Tycho m2eclipse extension, and I'd like to add a
OSGi bundle as a dependency. However, I can't seem to get them to
build them.

I created the following POM for my OSGi bundle dependency:

<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>
        <groupId>com.github.rgladwell</groupId>
        <artifactId>com.github.android.tools</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <packaging>bundle</packaging>
        <dependencies>
                <dependency>
                        <groupId>org.codehaus.plexus</groupId>
                        <artifactId>plexus-utils</artifactId>
                        <version>1.5.1</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                ...
        </dependencies>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
                                <extensions>true</extensions>
                                <configuration>
                                        <instructions>
                                                
<Export-Package>com.github.android.tools</Export-Package>
                                        </instructions>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
</project>

I also created a META-INF/MANIFEST.MF and it seems to compile in my Eclipse.

In my eclipse-test-plugin project I added the following line to my
MANIFEST.MF file:

Require-Bundle:
com.github.rgladwell.com.github.android.tools;bundle-version="0.1.0"

However, when I actually execute the build in my unit tests I get a
missing dependency exception:

Failed to execute runnable (java.lang.IllegalArgumentException: Bundle
"com.googlecode.eclipse.m2e.android.test" not found. Possible causes
include missing dependencies, too restrictive version ranges, or a
non-matching required execution environment.)

Is there something else I should be doing to add bundle dependencies
to my eclipse-test-plugin project?

Regards...

--
Ricardo Gladwell <[email protected]>
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell - MSN: [email protected]
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to