Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem to resolve Import-Package javax.servlet from p2 repository

uppps...  there are a looong story over this know issue... :)

thanks Igor...

cheers

Cristiano



On 15/01/12 17:28, Igor Fedorenko wrote:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=348045

--
Regards,
Igor

On 12-01-15 9:05 AM, Cristiano Gavião wrote:
Hi,

I'm facing a problem with a new project here with 0.14.0-SNAPSHOT.

I'm using two repositories:
<indigo-repo>http://download.eclipse.org/releases/indigo</indigo-repo>
<orbit-site>http://download.eclipse.org/tools/orbit/downloads/drops/I20120109153617/repository</orbit-site>

This is the error that Tycho reports:
[INFO] Adding repository (cached)
http://download.eclipse.org/releases/indigo
[ERROR] Internal error: java.lang.RuntimeException:
org.osgi.framework.BundleException: Bundle
com.c4biz.osgiutils.resourceproxy cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle com.c4biz.osgiutils.resourceproxy - Missing Constraint:
Import-Package: javax.servlet; version="2.5.0"
[ERROR] Bundle com.c4biz.osgiutils.resourceproxy - Missing Constraint:
Import-Package: javax.servlet.http; version="2.5.0"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle
com.c4biz.osgiutils.resourceproxy cannot be resolved
Resolution errors:
Bundle com.c4biz.osgiutils.resourceproxy - Missing Constraint:
Import-Package: javax.servlet; version="2.5.0"
Bundle com.c4biz.osgiutils.resourceproxy - Missing Constraint:
Import-Package: javax.servlet.http; version="2.5.0"

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
I have tried to delete the cache too, but don't resolve.

I could find one workaround... :s but I'm not much satisfied with that.
it was to substitute the
*Import-Package: javax.servlet; version="2.5.0"* by *Require-Bundle:
javax.servlet;bundle-version="2.5.0"*

I supposed this is because both repositories exports the same package
with different bundle version. How Tycho is supposed to work on this case ?

thanks

regards

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



Back to the top