Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adding custom bundle and install

Avatar

Avatar
Validate 1
Level 1
aemninja
Level 1

Likes

2 likes

Total Posts

51 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
aemninja
Level 1

Likes

2 likes

Total Posts

51 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
aemninja
Level 1

20-05-2021

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>

 

@Veena_Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

559 likes

Total Posts

676 posts

Correct Reply

194 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

559 likes

Total Posts

676 posts

Correct Reply

194 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

20-05-2021

Hi @aemninja 

 

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!

Answers (0)