Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AEM Cloud SDI Install

Avatar

Level 2

Hi Everyone,

 

I´m in a Cloud project. I´m traying to develop a feature using Sling Dynamic Include, however I can´t even install it.

 

I have the parent pom depenency:

 

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

Also in core.pom

 

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

 

and in the all.pom into the embeddeds:

 

<embedded>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.dynamic-include</artifactId>
<type>jar</type>
<target>/apps/catalog-packages/application/install</target>
</embedded>

 

also added into all.iml file (such as acs-commons)

 

<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="catalog.core" />
<orderEntry type="library" name="Maven: com.adobe.acs:acs-aem-commons-bundle:5.0.14" level="project" />
<orderEntry type="library" name="Maven: org.apache.sling:org.apache.sling.dynamic-include:3.3.0" level="project" />
</component>
</module>

 

However when I go to my http://localhost:4502/system/console/bundles and search for this bundle it does not exist.

 

Have anyone faced something similar?

 

I read a tons of documentation but they always install the bundle via installing a jar, and that´s not an option in cloud.

 

Thank you all for your help.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

just solved it.

 

just need to add a the dependency also in the all.pom

 

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

Probably the one from core.pom is not necessary.

 

Now I can see the bunde in the AEM Console,

 

user5741_0-1711544132989.png

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

just solved it.

 

just need to add a the dependency also in the all.pom

 

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

Probably the one from core.pom is not necessary.

 

Now I can see the bunde in the AEM Console,

 

user5741_0-1711544132989.png