Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Adobe analyser gives error on adobe cloud manager

Avatar

Level 2

Hi All,

on local SDK build is working fine but on adobe cloud pipeline deployment failed due to below error:

[ERROR] com.adobe.granite.fact.command.AnalyseCommand - exception occurred : Errors are present in the analyser. Please, check logs.
Errors:
[api-regions-exportsimports] test.project.core:0.0.1-SNAPSHOT: Bundle test.core:0.0.1-SNAPSHOT is importing package(s) [Package com.fasterxml.jackson.annotation;version=[2.16,3), Package com.fasterxml.jackson.databind;version=[2.16,3)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (test.project.all:0.0.1-SNAPSHOT)
[api-regions-exportsimports] test.project.core:0.0.1-SNAPSHOT: Bundle test.core:0.0.1-SNAPSHOT is importing package(s) [Package com.fasterxml.jackson.annotation;version=[2.16,3), Package com.fasterxml.jackson.databind;version=[2.16,3)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (test.project.all:0.0.1-SNAPSHOT)
[api-regions-exportsimports] test.project.core:0.0.1-SNAPSHOT: Bundle test.core:0.0.1-SNAPSHOT is importing package(s) [Package com.fasterxml.jackson.annotation;version=[2.16,3), Package com.fasterxml.jackson.databind;version=[2.16,3)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (test.project.all:0.0.1-SNAPSHOT)
[api-regions-exportsimports] test.project.core:0.0.1-SNAPSHOT: Bundle test.core:0.0.1-SNAPSHOT is importing package(s) [Package com.fasterxml.jackson.annotation;version=[2.16,3), Package com.fasterxml.jackson.databind;version=[2.16,3)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (test.project.all:0.0.1-SNAPSHOT)
[api-regions-exportsimports] test.project.core:0.0.1-SNAPSHOT: Bundle test.core:0.0.1-SNAPSHOT is importing package(s) [Package com.fasterxml.jackson.annotation;version=[2.16,3), Package com.fasterxml.jackson.databind;version=[2.16,3)] in start level 20 but no visible bundle is exporting these for that start level in the required version range. (test.project.all:0.0.1-SNAPSHOT)
[api-regions-exportsimports] test.project.core:0.0.1-SNAPSHOT: Bundle test.core:0.0.1-SNAPSHOT is importing package

 

I tried adding the dependency but sill shows the same error

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Sanjay50 ,

Yes it is OOTB dependencies  depends on the version of cloud ,If cloud server uses the old version then map the same old version to  your main pom and also try to change the analyser version 1.1.2.

after that run your pipeline .

 

 

 

View solution in original post

6 Replies

Avatar

Community Advisor

Hi, 

Are you using an SDK that matches your current AEM as a Cloud Service version? If not, please try using the latest SDK and attempt to reproduce the error. The error occurs because it seems the AEM build-analyzer plugin is unable to find the correctly exported classes you are importing.  

From the official documentation, this is what you should do: "To troubleshoot, see if the bundle providing the package is included in the deployment, or alternatively look at the manifest of the bundle that you would expect to be exporting to determine if the wrong name or wrong version was used." (https://experienceleague.adobe.com/en/docs/experience-manager-core-components/using/developing/arche...)

 

Hope this helps

 

 



Esteban Bustamante

Avatar

Community Advisor

@Sanjay50 

 

Please update the dependency version of aem-sdk in your pom.xml to match the AEM Server's version.

Build and check for errors.


Aanchal Sikka

Avatar

Level 2

Hi @aanchal-sikka & @EstebanBustamante ,

Actually on my local SDK is the latest version but on the cloud server it was very old 2023 version.

are you facing same kind of issue related com.fasterxml.jackson.annotation because it is OOTB dependency no need to explicit add in the our pom.xml

I tried multiple way to explicit  embed the jar in pom.xml  but still not working.

 

Avatar

Level 2

@Sanjay50 
Check that the version of the dependency added in the pom is same as the one already available in your environment.
If local is working fine and the environment pipeline is failing then most probably its the issue.

Also if it still doesn't work,In the POM.xml, after Import-Package: add Export-Package in the next line and add the dependency in this format:-

Export-Package: org.apache.sling.servlethelpers;version=1.4.6, org.apache.sling.servlethelpers.internalrequests;version=1.4.6

Avatar

Correct answer by
Community Advisor

Hi @Sanjay50 ,

Yes it is OOTB dependencies  depends on the version of cloud ,If cloud server uses the old version then map the same old version to  your main pom and also try to change the analyser version 1.1.2.

after that run your pipeline .

 

 

 

Avatar

Level 2

Thanks I did it the same thing and it passes in the cloud manager.