Expand my Community achievements bar.

SOLVED

Aem caas - error in importing Core Components

Avatar

Level 1

Hi,

 

 I'm trying to enable the Table of contents core components for my Aem Caas. I have created the filter as described in https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/main/java/com/adobe/cq/w... . 

in pom added the below dependencies

<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.core</artifactId>
<type>jar</type>
<version>${core-components-version}</version>
<scope>provided</scope>
</dependency>

 

However, when I run build in local getting the following error

Bundle abc-aem.core:1.0.0-SNAPSHOT is importing package(s) [com.adobe.cq.wcm.core.components.internal.servlets, com.adobe.cq.wcm.core.components.internal.models.v1] in start level 20 but no bundle is exporting these for that start level. (abc.aem:abc-aem.all:1.0.0-SNAPSHOT)

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Employee

For the AEMaaCS setup, you dont need the core components as dependencies in your POM files. https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/overv...

View solution in original post

3 Replies

Avatar

Community Advisor

com.adobe.cq.wcm.core.components.internal is not expose or not allowed to use directly.

 

Also check what version of core component already installed in AEM OOTB and you can use that version in dependency.



Arun Patidar

Avatar

Correct answer by
Employee

For the AEMaaCS setup, you dont need the core components as dependencies in your POM files. https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/overv...

Avatar

Level 1

Thank you. I have mistakenly copied the filter class to codebase. Removed filter 7 dependencies and just enabled the config. Now its working.