Skip to main content

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

Hi, 
Did you add the following?

<plugin>
  <groupId>org.eclipse.tycho</groupId>
  <artifactId>target-platform-configuration</artifactId>
  <version>${tycho-version}</version>
  <configuration>
    <pomDependencies>consider</pomDependencies>
  </configuration>
</plugin>
 

As said  there : http://wiki.eclipse.org/Tycho/Target_Platform#.22POM_dependencies_consider.22
(demo project moved there : http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/

Regards

Le 11 avril 2012 17:38, Jay Jay Billings <jayjaybillings@xxxxxxxxx> a écrit :
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

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top