[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 | Community
Skip to main content
Level 4
October 11, 2024

[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

  • October 11, 2024
  • 2 replies
  • 614 views

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]

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 14, 2024

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-local-aem-sdk-version/td-p/418821 

 

This is the official reference: https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/local-development-environment-set-up/aem-runtime#how-to-avoid-content-loss-when-upgrading-the-aem-sdk 

 

Hope this helps

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
October 16, 2024

@preston-3 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