Expand my Community achievements bar.

[ERROR] Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:5.1.2:bnd-process (bnd-process) on project xxxxx: Contracts declare the same packages in their uses

Avatar

Level 4

I'm attempting to upgrade to the latest SDK and I'm getting an error saying that Geronimo and the SDK are both trying to export the same version of the directive `javax.json`. I've never seen this before and it's unclear why simply upgrading the SDK would cause this. 

 

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.013 s
[INFO] Finished at: 2024-10-10T21:45:40-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal biz.aQute.bnd:bnd-maven-plugin:5.1.2:bnd-process (bnd-process) on project my-project.core: Contracts [Contract [name=JavaJSONP;version=1.1.0;from=geronimo-json_1.1_spec-1.3], Contract [name=JavaJSONP;version=1.1.0;from=aem-sdk-api-2024.10.18175.20241010T124406Z-240900]] declare the same packages in their uses: directive: [javax.json]. Contracts are found in declaring bundles (see their 'from' field), it is possible to control the findingwith the -contract instruction -> [Help 1]

 

2 Replies

Avatar

Community Advisor

Hi,

 

Could you elaborate on how you are upgrading the SDK? Have you tried downloading the latest version to see if that resolves your issue? Please check this thread where the best approach to upgrade the local SDK is discussed: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/optimal-way-to-upgrade-loc... 

 

This is the official reference: https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/local-development-... 

 

Hope this helps



Esteban Bustamante

Avatar

Administrator

@Preston Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni