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.

Aem Analyser plugin error

Avatar

Level 2

I think I have some dependency conflicts. 

 

I am using asset share commons as a dependency in my project. 

 

After a code change, I keep having this error : 

Screenshot 2021-10-19 at 16.28.03.png

 

I am using this version of asset share : 

2.0.6

 

And sdk version : 

2021.7.5662.20210726T181801Z-210600

 Any help please ?? 

5 Replies

Avatar

Community Advisor

Hi @Karim_Onizuka 

 

Try to find out/correct the imports of your code change & check if that works.

 

Regards,

Santosh

Avatar

Level 2

Hello @SantoshSai 

Thank you for the answer, here is the part of the import causing the issue 

Screenshot 2021-10-19 at 16.45.22.png

But I can not remove that import

Avatar

Employee Advisor

classes which reside within an "impl" java package are normally not exported by OSGI; at least that's the default used for AEM bundles, and I am not aware of any exception.

 

That means that the class "com.adobe.aem.commons.assetsshare.search.result.impl.results.QueryBUildsResultsImpl" is not available outside this specific java package.

 

You cannot use that class, also because you are not supposed to use it. It's also not part of the official API documentation. Why are using it?