Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor

Hi @arun , 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

Avatar

Level 1

Hi @B_Sravan ,
Any Luck in resolving the above issue?
Have tried including our custom bundle under the .core/src/main/resources/xxxx.jar. As well having the embedded entry in all/pom.xml and dependency in main& core pom.xml.
There is always a warning and the jar is not pushed to our install.
[WARNING] No matching artifacts for Embedded:

@arunpatidar , @GK-007@B_Sravan   - Please suggest if there is an resolution and steps to be followed.
Thanks

Cheers
Thabrez

Avatar

Community Advisor

Please check

https://github.com/arunpatidar02/aemaacs-aemlab/blob/f96ce5316dfa4798c72d2e87d3a0b41fc49791a4/all/po...

 

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



Arun Patidar

Avatar

Level 1

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-e...), so no luck here too .


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

Cheers
Thabrez

Avatar

Community Advisor

can you try adding jar/bundle directly inside

/apps/your-apps/install folder, just to check if it works or not?



Arun Patidar