Adding custom bundle and install | Community
Skip to main content
Level 6
May 21, 2021
Solved

Adding custom bundle and install

  • May 21, 2021
  • 1 reply
  • 1907 views

Hello Community - I have made some minor changes to Sling Dynamic Include jar and kept the custom SDI bundle under "/apps/project/install" folder and also added the below dependency. If I run a build, I could only see the SDI jar included in the install folder not the custom SDI bundle which I have added in the install folder. is there a way to only include & install my custom bundle not the actual SDI bundle? Please advise.

Added this dependency in core and parent POM:

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.dynamic-include</artifactId>
<version>3.1.2</version>
</dependency>

 

ui.apps POM:
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<version>0.0.24</version>
<extensions>true</extensions>
<configuration>
<group>com.test.company.aem</group>

. . . . .
<embeddeds>
<!-- Sling dynamic include -->
<embedded>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.dynamic-include</artifactId>
<target>/apps/project/install</target>
</embedded>
</embeddeds>
<properties>
<acHandling>Merge</acHandling>
</properties>
<targetURL>http://${aem.host}:${aem.port}/crx/packmgr/service.jsp</targetURL>
</configuration>
</plugin>

 

@veenavikraman

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 Asutosh_Jena_

Hi @test1234567 

 

Embedding the JAR will download the package from the groupId with the artifactId and will install on all target AEM instance. It will not pick from the local folder.

 

There are 2 ways you can install the custom jar:

  1. Either upload the custom jar to some external repo such as nexus or make it available as an external jar with different groupId and artifactId and then include those in POM under embedd section to to deply it along with build like any other external jar.
  2. Or manually install the custom jar on all AEM instances.

 

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
May 21, 2021

Hi @test1234567 

 

Embedding the JAR will download the package from the groupId with the artifactId and will install on all target AEM instance. It will not pick from the local folder.

 

There are 2 ways you can install the custom jar:

  1. Either upload the custom jar to some external repo such as nexus or make it available as an external jar with different groupId and artifactId and then include those in POM under embedd section to to deply it along with build like any other external jar.
  2. Or manually install the custom jar on all AEM instances.

 

Thanks!

Level 6
May 21, 2021
@asutosh_jena_ - Thanks for your inputs. For manual install on Prod publish instances, the felix console access is restricted. is there a way to install them on all instances without going to "system/console/bundles"