Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

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 Accepted Solution

Avatar

Correct answer by
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

View solution in original post

2 Replies

Avatar

Correct answer by
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