How to install third party jar files in AEM as a cloud service? | Community
Skip to main content
GK-007
Level 9
March 28, 2022
Solved

How to install third party jar files in AEM as a cloud service?

  • March 28, 2022
  • 2 replies
  • 4914 views

Hello all,

We are in the phase of migrating from AEM managed service to AEM cloud service, we want to deploy third-party jar. When we are in AEM managed services we have created an OSGI bundle from this jar but in AEM as a cloud, we can not upload and install this OSGI bundle using package manager because it will not allow installing immutable content manually.

Please suggest what's the process to be followed to deploy the jars which are not part of OSGI container.

 

Thanks,

Kishore

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

you can put this osgi bundle in the resources folder in your project core and copy in apps.ui /apps/myapp/vendor/install using POM similar to core bundle

 

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 29, 2022

you can put this osgi bundle in the resources folder in your project core and copy in apps.ui /apps/myapp/vendor/install using POM similar to core bundle

 

Arun Patidar
B_Sravan
Community Advisor
Community Advisor
May 15, 2022

Hi @arun-2 , by resources folder you mean, core/src/test/resources or core/src/main/ (create a folder resources) here?
also, by same pom you mean to use the <embedded> under plugins?
Please help, thank you.

 

Regards,

Sravan

February 3, 2023

Please check

https://github.com/arunpatidar02/aemaacs-aemlab/blob/f96ce5316dfa4798c72d2e87d3a0b41fc49791a4/all/pom.xml#L90

 

I have embedded a sdi jar in all packages and installing in aem with deployment.


Thanks for the quick reply @arunpatidar .
And yes we were successful in getting the embedded jars , where artifactId repository is available ( like Jsoup, sling..etc).

We were looking more towards the custom Jar's, where (in-house/company) artifactId repository is not available. 

As mentioned above in the chain, have tried placing our custom jar is resources path (<app_project>\core\src\main\resources) and as well tried the older way of placing in the install folder (<app_project>\ui.apps\src\main\content\jcr_root\apps\migration\install).

even  tried the below approach in the link(https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/embedding-and-installing-external-jar-to-aemacs-instance/m-p/448021), so no luck here too .


Seems like integrated/embedding the custom bundles/ jars is deprecated in AEMasCS, any guidance is much appreciated.

Cheers
Thabrez

Adobe Employee
September 17, 2024

It is an old thread but here is an ExL tutorial on How to install 3rd party artifacts (bundle, Java & packages) that are not part of Maven Central. 

https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/development/install-third-party-artifacts

arunpatidar
Community Advisor
Community Advisor
September 17, 2024

Thanks for sharing @sachin-mali 

Arun Patidar