Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho migrate version from 2.2 to 2.4

I used Apache Aries in a prototype of mine to register a resourceResolver that is later found by java's ServiceLoader mechanism and it worked well for me to build it with the tycho 2.4.0 and 2.5.0-SNAPSHOT.
But I required the opposite end (the registrar instead of the processor) using the following Manifest excerpt:
Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.serviceloader.registrar)"
Provide-Capability: osgi.serviceloader;osgi.serviceloader=org.bytedeco.javacpp.Loader$ResourceResolver
Besides that only 'org.apache.aries.spifly.dynamic.bundle' was added to my target-platform (using the m2e Maven target-location). Of course there is a corresponding implementaiton.
So maybe something is not configured completly right in your setup. As already mentioned the dependency resolver used before Tycho 2.3.0 was not as prescice as the current one is. But you should have actually noticed that at runtime.
I first recommond to re run your build with debug-printout using the -e -X flags. And if you are relatively sure that it is a bug in Tycho a minimal reproducer is more than welcome.
Gesendet: Mittwoch, 11. August 2021 um 17:35 Uhr
Von: "Antonio Garmendía" <antonio.agj@xxxxxxxxx>
An: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Betreff: [tycho-user] Tycho migrate version from 2.2 to 2.4
Hi all,
Currently, I built my jars using Tycho 2.2 and at this moment it works fine. However, I was trying to migrate to version 2.4, but the following error arises:
[ERROR]   Unresolved requirement: Require-Bundle: org.jboss.forge.roaster.roaster-api; bundle-version="2.23.0"
[ERROR]     -> Bundle-SymbolicName: org.jboss.forge.roaster.roaster-api; bundle-version="2.23.0.Final"; singleton:="true"
[ERROR]        org.jboss.forge.roaster.roaster-api [1]
[ERROR]          Unresolved requirement: Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"
[ERROR] -> [Help 1]
Since I am using Apache Aries I do not know if I am missing something. It is weird (at least for me) because it works with version 2.2. In addition, I tested also with Tycho 2.3 and the same error arises.
Any hints? Should I make a minimal example?
Thanks in advance.
Kind regards,
_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx To unsubscribe from this list, visit

Back to the top