Expand my Community achievements bar.

SOLVED

Issues while importing dependencies in a project

Avatar

Level 2

I am facing an issue while importing dependencies in my project. I need to import itextpdf dependency to use pdfWriter and I am trying to use 5.5.13.3 version.

 

I am using AEM as a cloud Service SDK platform.

 

The error logs are as below :

anshul___0-1684218076268.jpeg

 

 

Attached are the screenshots of the dependencies added in the POM files.

 

pom.xml

anshul___1-1684218076271.png

 

 

core/pom.xml

 

anshul___2-1684218076274.png

 

 

The dependencies are shown with the following status while checking the bundle with the build success.

 

anshul___3-1684218076277.png

 

 

Though, if I am trying to import these dependencies in a class and building the code it fails.

 

I have also tried with a solution to add embed-dependencies which I could not find helpful. With that I have also tried with one more solution which also didn’t help.

 

anshul___4-1684218076281.jpeg

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 2

Hi @Sady_Rifat,

Thanks for your response. I tried with the solution approach, but still facing some build error for the new module we have created. Can you connect for the help?