Hi Team, We are migrating from 6.2 to 6.5 and on top of that installed 6.5.15, we were able to resolve dependency issues in all bundles except one bundle. Getting Boot deligation issues.
Please find the screens shots of bundle and can someone let me know how to resolve the following dependencies.
Bundle:
Solved! Go to Solution.
Views
Replies
Total Likes
@srinivasreddyaem welcome to AEM Experience League communities.. Great place to co-learn, collaborate and communicate..
For your issue, sun.io related packages are related to jre and comes with sling container.. so even though your bundle depends on some other external bundle dependencies to get these packages, sling ignores them and resolve dependencies from container only. That's what boot delegation means.. try excluding those dependencies from your bundle pom
@srinivasreddyaem welcome to AEM Experience League communities.. Great place to co-learn, collaborate and communicate..
For your issue, sun.io related packages are related to jre and comes with sling container.. so even though your bundle depends on some other external bundle dependencies to get these packages, sling ignores them and resolve dependencies from container only. That's what boot delegation means.. try excluding those dependencies from your bundle pom
I encountered a similar issue when updating the JDK version from JDK 8 to JDK 11. My custom bundle was failing with the error:
java.sql -- Cannot be resolved and overwritten by Boot Delegation
I'm posting the solution here, as it might be helpful for others facing the same issue.
The solution that worked for me was to exclude the java.sql dependency from the pom.xml file by using:
Import-Package: !java.sql,javax.annotation;version=0.0.0,*
Reference: https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies