내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How to add external jars in to the OSGI bundle?

Avatar

Level 3

Hello,

I am planning on using Jackson to process JSON. How can I include Jackson libraries in to the OSGI bundle? I am using IntelliJ. Adding the Jackson library as a Maven dependency does not work.

Thank you.

Cheers,

Viren.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 7

Hi Viren.
I've explained something about this in this thread : http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

There I've included the jar as a dependency and then exported the classes of interest in the export packages section in the pom. I hope this will help you :)

/Johan

원본 게시물의 솔루션 보기

3 답변 개

Avatar

이전 커뮤니티 멤버

First convert those jars in to bundles and add them as dependencies. If you are using eclipse you can use Plug-in Development >>>>>> Plugin Project. After creating bundles deploy them as seperate bundles in your felix. At compile time you can refer them by using system path in your dependencies.

Avatar

정확한 답변 작성자:
Level 7

Hi Viren.
I've explained something about this in this thread : http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

There I've included the jar as a dependency and then exported the classes of interest in the export packages section in the pom. I hope this will help you :)

/Johan

Avatar

Level 10

We have many community articles that cover this topic and walk you through how to do this. See this one.

http://scottsdigitalcommunity.blogspot.ca/2013/06/posting-form-data-to-adobe-cq-using.html

IN this article -- there was a dependency on a JSON Java library. Therefore we had to get the JSON JAR into a bundle and deployed to AEM. In this article - this is explained here (step by step using the Eclipse plug-in):

[img]Abundle.png[/img]

This provides step by step for maruthid's response above (which is correct). Ojjis provides another correct answer as well. 

Hope this helps