Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Fixing Bundles Dependency in AEM 6.4.0

Avatar

Level 4

Hi,

 

I have created project CIF Archetype Project, Once I build the project. I am able to see below bundles on Console - http://localhost:4502/system/console/bundles

However, their status is Installed not Active, there were some dependencies issue, I fixed all except first Bundle screenshot given below, but other bundles are still not active.

 

Heena91_1-1602477289757.png

Heena91_6-1602477808803.png

Heena91_2-1602477475513.png

Heena91_3-1602477557573.png

Heena91_4-1602477614996.png

Heena91_5-1602477676050.png

 

In order to fix this dependency issue I added this <Export-Packages> tag under parent pom.xml, once build it is giving below error:

 

Heena91_0-1602477236808.png

 

Please help to fix this issue, I am stuck with this issue for long time now, trying to achieve Magento and AEM(6.4) Integration with CIF.

 

Thanks,

Heena

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

If you are using the latest maven archetype with CIF support, it mentions 6.4.8.1 as pre-requisite. See https://github.com/adobe/aem-project-archetype ("System requirements").

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @Heena91,

Build error that you have highlighted says "error found in bundle configuration" implies any issue due to the recent changes done on maven-bundle-plugin definition (Should be while adding Export packages list that you have mentioned)

Root cause of bundle not being "Active" seems to be simple which is "packages that we are referring in our bundle is not available/unable to find in the instance". However steps to be taken depend on the package that we are using.

Please share the below details:

  • List of packages which was there in the "Export Packages" list before and after commencing the integration
  • List of packages which are in red/not resolved state
  • Did you add any dependency in specific. If yes, mention the same.
  • Steps that you followed as part of this integration 

Avatar

Level 4

Hi @Vijayalakshmi_S

 

Please find the required details below and suggest:

 

1.  List of packages:

 <Export-Package>

                           org.apache.sling.api;version=2.1,

                           org.apache.sling.api.adapter;version=2.2,

                           org.apache.sling.api.auth;version=1.0,

                           org.apache.sling.api.request;version=2.1,

                           org.apache.sling.api.resource;version=2.1,

                           org.apache.sling.api.scripting;version=2.1,

                           org.apache.sling.api.servlets;version=2.1,

                           org.apache.sling.api.wrappers;version=2.1,

                           org.apache.sling.api.wrappers.impl;version=2.1,

                           com.adobe.granite.ui.components;version=1.19,

                           com.adobe.granite.ui.components.ds;version=1.3,

                           com.day.cq.search;version=1.3,

                           com.day.cq.search.impl.builder;version=1.3,

                            com.day.cq.search.impl.util;version=1.3,

com.adobe.granite.ui.components.impl;version=1.19,

com.day.cq.search.eval;version=1.3,

com.fasterxml.jackson.core;version=2.9,

com.fasterxml.jackson.core.type;version=2.9,

com.fasterxml.jackson.databind;version=2.9,

org.apache.commons.io;version=2.6,

org.apache.sling.api.resource;version=2.11,

org.eclipse.jetty.util;version=9.4,

org.apache.sling.spi.resource.provider;version=1.2

      </Export-Package>

 

 

 

 

2. List of packages which are in red/not resolved state:

 

org.apache.sling.api.resource,version=[2.11,3) -- Cannot be resolved

org.apache.sling.api.resource.provider,version=[1.2,2) -- Cannot be resolved

com.adobe.granite.ui.components,version=[1.19,2) -- Cannot be resolved

com.adobe.granite.ui.components.ds,version=[1.3,2) -- Cannot be resolved

com.day.cq.search,version=[1.3,2) -- Cannot be resolved

 

3. Did you add any dependency in specific. If yes, mention the same - NO

 

4. Steps that you followed as part of this integration: https://www.adobe.io/apis/experiencecloud/commerce-integration-framework/getting-started.html#!Adobe... 

 

Thanks,

Heena

 

Avatar

Community Advisor

@Heena91 - Which CIF version are you using with AEM 6.4 version ?
Not sure if the latest CIF Archetype project will work with AEM 6.4. But when I tried the same thing on AEM 6.5 and cloud it worked well.
If the dependencies is the only issue here then try creating bundle out of the dependent jar and deploy it with the project build. 

You can refer below link to deploy it along with project built:
https://aemsimplifiedbynikhil.wordpress.com/2020/08/23/resolve-dependencies-by-converting-jar-to-bun... 

Thanks
Nikhil

Avatar

Correct answer by
Employee Advisor

If you are using the latest maven archetype with CIF support, it mentions 6.4.8.1 as pre-requisite. See https://github.com/adobe/aem-project-archetype ("System requirements").