Dependency not resolved while building the code | Community
Skip to main content
Nandheswara
New Participant
February 9, 2025
Solved

Dependency not resolved while building the code

  • February 9, 2025
  • 3 replies
  • 689 views

Hi All,

I'm currently using AEM 6.5.18 version and java 8 and having the issue while building the code which is below


I have the required dependency for this even thought it is getting failed below i added the dependency which i have in my core pom file

<dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3.2</version> </dependency> <plugin> <groupId>biz.aQute.bnd</groupId> <artifactId>bnd-maven-plugin</artifactId> <executions> <execution> <id>bnd-process</id> <goals> <goal>bnd-process</goal> </goals> <configuration> <bnd><![CDATA[ Import-Package: javax.annotation;version=0.0.0,!org.osgi.framework,* -includeresource: jsoup*.jar;lib:=true ]]></bnd> </configuration> </execution> </executions> </plugin>

I tried and searched with many ways but not able to resolve this error, so if anyone knows how to resolve this error please help me out.

 

Regards,

Nandheswara S M

 

Best answer by Uppari_Ramesh

Hi @nandheswara ,

We will get dependency resolution issues when we use some third party libraries. To fix this we need to follow some extra steps. Please find my comment in below link and do follow and build code https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-not-getting-resolved/m-p/664852#M166393 

 

Thanks

Ramesh

3 replies

kautuk_sahni
Employee
February 18, 2025

@nandheswara Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
Uppari_Ramesh
Uppari_RameshAccepted solution
New Participant
February 10, 2025

Hi @nandheswara ,

We will get dependency resolution issues when we use some third party libraries. To fix this we need to follow some extra steps. Please find my comment in below link and do follow and build code https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-not-getting-resolved/m-p/664852#M166393 

 

Thanks

Ramesh

joerghoh
Employee
February 9, 2025