Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Does p2 support OSGi 4.3 Capabilities ?
Does p2 support OSGi 4.3 Capabilities ? [message #893387] Tue, 03 July 2012 19:24 Go to next message
Cristiano Gavião is currently offline Cristiano GaviãoFriend
Messages: 279
Registered: July 2009
Senior Member
Hi,

I'm improving the Gemini JPA unit tests to ensure that Capabilities is working properly.

The building is failing (Tycho) with the error below.

Does p2 support OSGi 4.3 Capabilities ? If not, would like to know about the plans of adding such support.

thanks,

Cristiano

[INFO] Resolving class path of MavenProject: org.eclipse:org.eclipse.gemini.jpa.testdata.weavedpunit:1.1.0-SNAPSHOT @ /Users/cvgaviao/Development/Development_Eclipse/org.eclipse.gemini.jpa/org.eclipse.gemini.jpa.testdata.weavedpunit/pom.xml
[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.eclipse.gemini.jpa.testdata.weavedpunit cannot be resolved
[ERROR] Resolution errors:
[ERROR] Bundle org.eclipse.gemini.jpa.testdata.weavedpunit - Missing Constraint: Require-Capability: osgi.extender; filter="(&(osgi.extender=osgi.jpa)(version>=1.0))"
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.eclipse.gemini.jpa.testdata.weavedpunit cannot be resolved
Resolution errors:
   Bundle org.eclipse.gemini.jpa.testdata.weavedpunit - Missing Constraint: Require-Capability: osgi.extender; filter="(&(osgi.extender=osgi.jpa)(version>=1.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)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: org.osgi.framework.BundleException: Bundle org.eclipse.gemini.jpa.testdata.weavedpunit cannot be resolved
Resolution errors:
   Bundle org.eclipse.gemini.jpa.testdata.weavedpunit - Missing Constraint: Require-Capability: osgi.extender; filter="(&(osgi.extender=osgi.jpa)(version>=1.0))"

    at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:252)
    at org.eclipse.tycho.core.osgitools.OsgiBundleProject.resolveClassPath(OsgiBundleProject.java:158)
    at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:111)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:64)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    ... 11 more
Caused by: org.osgi.framework.BundleException: Bundle org.eclipse.gemini.jpa.testdata.weavedpunit cannot be resolved
Resolution errors:
   Bundle org.eclipse.gemini.jpa.testdata.weavedpunit - Missing Constraint: Require-Capability: osgi.extender; filter="(&(osgi.extender=osgi.jpa)(version>=1.0))"

    at org.eclipse.tycho.core.osgitools.EquinoxResolver.assertResolved(EquinoxResolver.java:291)
    at org.eclipse.tycho.core.osgitools.EquinoxResolver.newResolvedState(EquinoxResolver.java:71)
    at org.eclipse.tycho.core.osgitools.OsgiBundleProject.getResolverState(OsgiBundleProject.java:250)
    ... 16 more
[ERROR] 
Re: Does p2 support OSGi 4.3 Capabilities ? [message #893739 is a reply to message #893387] Thu, 05 July 2012 12:35 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Bugs are open, but there's no movement yet.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=313553
https://bugs.eclipse.org/bugs/show_bug.cgi?id=324352
Previous Topic:Juno vs. p2
Next Topic:Can p2.inf start bundle not included in feature?
Goto Forum:
  


Current Time: Thu Apr 18 15:15:25 GMT 2024

Powered by FUDForum. Page generated in 0.01598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top