将JGIT依赖性嵌入AEM之后,无法解决太阳依赖性

发布于 2025-01-28 16:57:00 字数 1150 浏览 2 评论 0原文

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

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

他夏了夏天 2025-02-04 16:57:00

您可能真的不需要这些依赖项,请使用&lt; import-packages&gt; e节:将它们排除在pom.xml之外:

<Import-Package>
!sun.net.www.protocol.http,
!sun.security.jgss,
*
</Import-Package>

You probably do not really need those dependencies, exclude them from your pom.xml using the <Import-Packages> section:

<Import-Package>
!sun.net.www.protocol.http,
!sun.security.jgss,
*
</Import-Package>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文