Leiste mit Community-Erfolgen erweitern.

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

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

How to build multiple third party jars into single jar.

Avatar

Level 3

Hi,

In my project i have used third party jars like(bcmail-jdk16-1.46.jar,fontbox-1.8.3.jar,pdfbox-1.7.0.jar..etc).

I want to make these jars into single jar.Is it possible to make single jar.? I need information regarding this.

That will be great for your help.

 

Thanks,

Rahul.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 10

In AEM, instead  of getting JARs into 1 JAR, place these JARs in an OSGI bundle fragment and deploy the bundle fragment to AEM. You can use an Eclipse plugin project to do this task. For example, look at how we place the simple JSon JAR into a bundle fragment and deploy to AEM. See 

http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Korrekte Antwort von
Level 10

In AEM, instead  of getting JARs into 1 JAR, place these JARs in an OSGI bundle fragment and deploy the bundle fragment to AEM. You can use an Eclipse plugin project to do this task. For example, look at how we place the simple JSon JAR into a bundle fragment and deploy to AEM. See 

http://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html

Avatar

Level 10