Unable to resolve non related dependency after embedding a dependency | Community
Skip to main content
Level 3
May 13, 2022
Question

Unable to resolve non related dependency after embedding a dependency

  • May 13, 2022
  • 1 reply
  • 627 views

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

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

fulongt37334138
Level 2
July 19, 2024

Have you resolve this?