Expand my Community achievements bar.

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

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Level 10

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 

Avatar

Level 10

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

Avatar

Correct answer by
Community Advisor

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