Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Picking up OSGi bundles at maven.java.net?

Everyone,

What's the best way to pick up OSGi bundles stored at maven.java.net or the snapshot repository:

https://maven.java.net/content/repositories/snapshots/

We are using Jersey, which is already osgi-ified and ready to go. They work fine if I drop it into a directory in the Target file, but of course Tycho can't handle that. I've added the following to my pom.xml:

parent pom:

    <repositories>

        <repository>
            <id>snapshot-repository.java.net</id>
            <name>Java.net Snapshot Repository for Maven</name>
            <url>https://maven.java.net/content/repositories/snapshots/</url>
            <layout>default</layout>
        </repository>

    </repositories>

project (bundle) pom:

    <!-- Pull down the Jersey dependency -->
    <dependencies>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
            <version>1.12</version>
        </dependency>

        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-servlet</artifactId>
            <version>1.12</version>
        </dependency>
    </dependencies>


Any thoughts?

Jay

Back to the top