How to build multiple third party jars into single jar. | Community
Skip to main content
Level 3
October 16, 2015
Solved

How to build multiple third party jars into single jar.

  • October 16, 2015
  • 2 replies
  • 918 views

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.

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 smacdonald2008

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

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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