Adobe analyser gives error on adobe cloud manager | Community
Skip to main content
Level 2
July 12, 2024
Solved

Adobe analyser gives error on adobe cloud manager

  • July 12, 2024
  • 4 replies
  • 1409 views

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

Best answer by Sanjay_Bangar

Hi @lax50 ,

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 .

 

 

 

4 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 12, 2024

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/archetype/build-analyzer-maven-plugin)

 

Hope this helps

 

 

Esteban Bustamante
aanchal-sikka
Community Advisor
Community Advisor
July 14, 2024

@lax50 

 

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
lax50Author
Level 2
July 15, 2024

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.

 

arko_martech
Adobe Champion
Adobe Champion
July 15, 2024

@lax50 
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

Sanjay_Bangar
Community Advisor
Sanjay_BangarCommunity AdvisorAccepted solution
Community Advisor
July 15, 2024

Hi @lax50 ,

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 .

 

 

 

lax50Author
Level 2
July 15, 2024

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