[
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?
|
Everyone,
I was able to fix this by adding the line of code that Xavier sent and the following lines to my parent pom:
<!-- Add the repositorys for the Jersey bundles -->
<repositories>
<repository>
<id>jerseyRepository</id>
<name>Java.net Jersey Repository for Maven</name>
<url>
https://maven.java.net/content/repositories/releases/com/sun/jersey</url>
<layout>default</layout>
</repository>
<repository>
<id>javaxRepository</id>
<name>Java.net Repository for Maven</name>
<url>
https://maven.java.net/content/repositories/releases/javax/</url>
<layout>default</layout>
</repository>
</repositories>
<!-- Pull down the Jersey dependencies -->
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<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>
Furthermore, I had to have my server bundle require javax.servlet (2.5.0) as a required bundle.
Jay
On Wed, Apr 11, 2012 at 12:40 PM, Jay Jay Billings
<jayjaybillings@xxxxxxxxx> wrote:
Xavier,
Thanks!
Unfortunately, it didn't work. I've pasted the exact error below. It looks like Maven downloaded them OK - all of the bundles are in ~/.m2/repository/com/sun/java/jersey-* and they all have MANIFEST.mf files in them. Any thoughts?
Jay
I received this error (which is the same error as before):
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: gov.ornl.nice.niceclient 2.0.0
[ERROR] Missing requirement: gov.ornl.nice.nicecore 2.0.0 requires 'package com.sun.jersey.spi.container.servlet 0.0.0' but it could not be found
[ERROR] Cannot satisfy dependency: gov.ornl.nice.niceclient 2.0.0 depends on: package gov.ornl.nice.nicecore.iNiCECore 0.0.0
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package com.sun.jersey.spi.container.servlet 0.0.0.", "Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package javax.ws.rs 0.0.0.", "Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package javax.ws.rs.core 0.0.0.", "Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package javax.ws.rs.ext 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package com.sun.jersey.spi.container.servlet 0.0.0.", "Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package javax.ws.rs 0.0.0.", "Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package javax.ws.rs.core 0.0.0.", "Unable to satisfy dependency from gov.ornl.nice.nicecore 2.0.0 to package javax.ws.rs.ext 0.0.0.", "No solution found because the problem is unsatisfiable."]
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)