Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to build bundle with OSGi 4.3 Capabilities ?

Hi Igor, thanks I'll take a look at the links you suggested.

Please, if you could ask p2 guys I would like to know more about.

regards,

Cristiano

On 30/06/12 11:25, Igor Fedorenko wrote:
If p2 does not support OSGi 4.3 Capabilities, and I am guessing this is
the case, your only choice is to duplicate these as extra target
platform requirements in pom.xml (see [1] for few examples) or using
p2.inf (see p2 documentation). The latter is likely preferable as it
will also work at install time. I'd also ask p2 developers if they
support or plan to support OSGi 4.3 Capabilities.

[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-its/projects/363331_extraTargetPlatformRequirements?id=tycho-0.15.0

--
Regards,
Igor

On 12-06-30 10:17 AM, Cristiano Gavião wrote:
Hi,

Gemini JPA is providing OSGi 4.3 Capabilities.

I've update some test bundles for use it, but I'm getting errors in the
tycho build (below).

Is tycho aware of OSGi 4.3 Capabilities ?

thanks,

Cristiano


I got this error:

[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]
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

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




Back to the top