What is the best way to include a third party jar in to AEM bundle? | Community
Skip to main content
Level 2
Dec 3, 2018 6:54 AM UTC
Solved

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

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.
aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Sep 27, 2023 9:54 AM UTC

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

3 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Sep 27, 2023 9:54 AM UTC

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

Translate
Aanchal Sikka
smacdonald2008
Level 10
Dec 3, 2018 6:10 PM UTC

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

Translate
smacdonald2008
Level 10
Dec 3, 2018 3:01 PM UTC

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 

Translate