Expand my Community achievements bar.

Dependency not resolved while building the code

Avatar

Level 5

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


Screenshot 2025-02-09 at 8.06.49 PM.png

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

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Employee Advisor

Avatar

Level 5

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... 

 

Thanks

Ramesh

Avatar

Administrator

@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