将JGIT依赖性嵌入AEM之后,无法解决太阳依赖性
AEM:6.5.12
JGIT:6.1.0
Javaewah:1.1.2
我试图将JGIT依赖性嵌入我的pom.xml。
<!-- https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit -->
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
</dependency>
通过添加
<Embed-Dependency>someAnotherDependency,org.eclipse.jgit;scope=compile|runtime</Embed-Dependency>
此导致另一种依赖性无法解决,这
<dependency>
<groupId>com.googlecode.javaewah</groupId>
<artifactId>JavaEWAH</artifactId>
</dependency>
是JGIT所需的东西。 也将其添加到嵌入依赖项中,
<Embed-Dependency>someOtherDependency,org.eclipse.jgit,JavaEWAH;scope=compile|runtime</Embed-Dependency>
因此,当我添加这两个问题时,
我不熟悉这个错误。 当我删除嵌入式依赖关系(留在那里的依赖关系)时,错误就会消失。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能真的不需要这些依赖项,请使用
&lt; import-packages&gt;
e节:将它们排除在pom.xml之外:You probably do not really need those dependencies, exclude them from your pom.xml using the
<Import-Packages>
section: