Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to add a third party bundle to you AEM package ?

Avatar

Community Advisor

I had this question for a long time , especially for Maven bundles. I am not sure if this is the right way but I figured out something after going through many (actually not dat many ) How to add a third party bundle to you AEM package ? | LinkedIn  Hope this helps .

I would really like to know if this is a right way to do this. Anybody who has previously done this can let me know if this is ok. For me the packages are behaving as expected even when I do fresh build.

7 Replies

Avatar

Community Advisor

I have updated this . Thanks to Jörg Hoh and bsloki​ for pointing to the right method

Avatar

Community Advisor

Jörg Hoh I tested this in 6.2 . Embed for particular jars is working only in 6.3 and above.

Avatar

Employee Advisor

The content-package-maven-plugin is independent from AEM versions. I use this approach since at least AEM 5.6 times...

Based on my experience I cannot confirm that this is something solely for 6.3 and later. Maybe you can be more specific here.

regards,

Jörg

Avatar

Community Advisor

Hi Jorg

   I am trying to add some AWS jars to the package . It works fine in 6.3 for me . But the same thing when I tried for my existing project which is in 6.2 , even thought I can see the bundle under install folder, it is not showing up in the felix console.

1452057_pastedImage_2.png

1452058_pastedImage_3.png

I am embedding the above bundles to my package. This works fine in 6.3 , but the AWS bundle is not getting installed in the felix console. It is reflecting in the install folder of my project but not getting installed in the felix console . I get the below error in the console in 6.2 . Clearly my bundle is not able to resolve this dependencies. So I assume this shud be an issue only with the AWS bundle alone.

Avatar

Employee Advisor

I guess that's rather a dependency problem on AEM 6.2 on an OSGI level. But nevertheless the way how to bring these bundles into an AEM instance (even if the bundle is not properly resolving then) is agnostic to the AEM version.

Jörg

Avatar

Community Advisor

Sharing a blog which explains how to use Third-party bundles when:

  • Hosted in restricted Maven repo
  • Local repo (i.e. when maven repositories cannot be used)

https://techrevel.blog/2023/09/27/managing-third-party-dependencies-in-aem/

 

It also covers the configs needed for deployment via Cloud manager


Aanchal Sikka