Even if the code don’t change, changing the maven plugin can change the generated MANIFEST.
For instance, "old" maven plugin version didn’t generate requirement header. Another possible change is about the feature namespace you use. If you use feature xmlns 1.3 or 1.4, services requirement are checked. It’s not the case with previous namespace version. It’s control by the serviceRequirements property in etc/org.apache.karaf.features.cfg. We use "default" by default ( ;) ), meaning that service requirements are ignored for old features namespace. Regards JB > Le 9 avr. 2021 à 19:32, Steinar Bang <[email protected]> a écrit : > >>>>>> JB Onofré <[email protected]>: > >> Log service is provided by Karaf (pax logging actually). > > Ok. Good! :-) > >> Can you check your bundle or feature requirement when you build it ? I >> suspect more a new requirement in your bundle/feature. > > That may be. But there are no code changes between working and not > working, > > The only change is karaf.version from 4.3.0 to 4.3.1. > >> I also recommend to upgrade to maven-bundle-plugin 5.1.2 as it fixes an >> important issue. > > Ok, I will do. > >> If you can share your project, I can take a look. > > Several projects. > > The failing application is this one (all in-work branches are in the scratch > repository): > https://github.com/steinarb/authservice > karaf-4.3.x branch: > https://github.com/steinarb/scratch/tree/authservice/on-karaf-430 > > It depends on the following bundles/features that all have been bumped to > karaf 4.3: > https://github.com/steinarb/beans > karaf-4.3.x branch: > https://github.com/steinarb/scratch/tree/beans/on-karaf-43x > > https://github.com/steinarb/adapters-for-osgi-services > karaf-4.3.x branch: > https://github.com/steinarb/scratch/tree/adapters-for-osgi-services/on-karaf-430 > > https://github.com/steinarb/servlet > karaf-4.3.x branch: > https://github.com/steinarb/scratch/tree/servlet/on-karaf-430 > > https://github.com/steinarb/osgi-service > karaf-4.3.x branch: > https://github.com/steinarb/scratch/tree/osgi-service/on-karaf-43x > > If you clone the actual projects, add the scratch repository using > git remote add scratch https://github.com/steinarb/scratch.git > and check the 4.3 branch out from there. >
