What is the best way to include a third party jar in to AEM bundle? | Community
Skip to main content
Level 2
December 3, 2018
Solved

What is the best way to include a third party jar in to AEM bundle?

  • December 3, 2018
  • 3 replies
  • 1434 views

I have seen somewhere in the forum people recommend to use the maven scope system. if I include my jar location(local maven repo path) in the system path and embed that in the pom, the jar will be embedded in the AEM bundle and it would work fine. If I commit that code in the GIT other developers will need to change the repo path location corresponding to the local. Is that a good approach? Or do we have a recommended practice for this?

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 aanchal-sikka

Sharing a blog which explains how to use Third-party bundles when:

  • Hosted in restricted Maven repo
  • Local repo (i.e. when maven repositories cannot be used)

https://techrevel.blog/2023/09/27/managing-third-party-dependencies-in-aem/

 

It also covers the configs needed for deployment via Cloud manager

3 replies

smacdonald2008
Level 10
December 3, 2018

If you commit a JAR into GIT, then when other ppl clone that repo, and want to build the OSGi bundle, you are correct - they must make sure the Maven can find that JAR during the build process.

Danial covers use of GIT in the project setup section here -- Getting Started with AEM Sites Chapter 1 - Project Setup 

smacdonald2008
Level 10
December 3, 2018

If you look at the SOLR Article - you can see how POM is configured to pickup the required dependencies - Adobe Experience Manager Help | Integrating SOLR with Adobe Experience Manager 6.4

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
September 27, 2023

Sharing a blog which explains how to use Third-party bundles when:

  • Hosted in restricted Maven repo
  • Local repo (i.e. when maven repositories cannot be used)

https://techrevel.blog/2023/09/27/managing-third-party-dependencies-in-aem/

 

It also covers the configs needed for deployment via Cloud manager

Aanchal Sikka