Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to resolve non related dependency after embedding a dependency

Avatar

Level 3

AEM: 6.5.12

JGIT:6.1.0

JavaEWAH:1.1.2

 

I am trying to embed JGit dependency to my pom.xml.

<!-- https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit -->
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
</dependency>

by adding 

<Embed-Dependency>someAnotherDependency,org.eclipse.jgit;scope=compile|runtime</Embed-Dependency>

This resulted another dependency not resolving which is

<dependency>
<groupId>com.googlecode.javaewah</groupId>
<artifactId>JavaEWAH</artifactId>
</dependency>

 

which is something JGIT required. So added it to embed dependency as well

<Embed-Dependency>someOtherDependency,org.eclipse.jgit,JavaEWAH;scope=compile|runtime</Embed-Dependency>

 When I added these two I got another dependency issue

Vinit_Pillai_0-1652427977570.png

the error on this one is not familiar to me.
When I remove my embedded dependencies (leaving one which was already there) the error disappears.

0 Replies