Aem caas - error in importing Core Components | Community
Skip to main content
May 29, 2024
Solved

Aem caas - error in importing Core Components

  • May 29, 2024
  • 2 replies
  • 810 views

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/wcm/core/components/internal/servlets/TableOfContentsFilter.java . 

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)

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 himanshu

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/overview#via-aemaacs

2 replies

arunpatidar
Community Advisor
Community Advisor
May 29, 2024

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
himanshuAdobe EmployeeAccepted solution
Adobe Employee
May 29, 2024

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/overview#via-aemaacs

May 29, 2024

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