本文介绍了AEM Mocks缺少最新版本的工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我添加了最新版本的 AEM模拟(2.7.2)作为我的AEM项目中的Maven依赖项.当我尝试构建项目时,出现一条错误消息,指出找不到该工件:com.day.commons:day-commons-gfx:jar:2.1.28.所以我看了网上,找到了,将其添加为依赖项.但是现在尝试构建时出现相同的错误.这个工件仍然存在吗?在尝试各种最新版本的AEM Mocks时,我发现它们全都依赖于缺少的工件.

I have added the latest version of AEM Mocks (2.7.2) as a Maven dependency in my AEM project. When I try to build my project, I get an error saying that this artifact cannot be found: com.day.commons:day-commons-gfx:jar:2.1.28. So I looked online, found it and added it as a dependency. But now I get the same error when trying to build. Does this artifact still exist? When trying various recent versions of AEM Mocks, I found that they all depend on this missing artifact.

目前,我已降级至2.3.0版,该版本在没有该工件的情况下仍可以正常工作,但如果可能的话,我想使用最新版本.

For now, I downgraded to version 2.3.0, which works fine without that artifact but I would like to use the most recent version if possible.

任何人都可以帮忙吗?谢谢!

Can anyone please help? Thanks!

推荐答案

此工件被定义为解决方法,在注释中对此进行了解释: https://github.com/wcm-io/wcm-io-testing/blob/develop/aem-mock/core/pom.xml#L254 :

This artifact is defined as a workaround, it is explained here in comment:https://github.com/wcm-io/wcm-io-testing/blob/develop/aem-mock/core/pom.xml#L254:

它对我来说没有任何问题,因此我将检查您是否正确配置了Maven存储库.为此,请在您的Maven项目根目录中输入:

It works without any issues for me, so I would check if you have correctly configured Maven repositories. To do it, in your Maven project root type:

mvn help:evaluate

然后:

${project.repositories}

它应该列出您的项目有效存储库.确保有中央存储库( https://repo.maven.apache.org/maven2/)列出.如果存在,则可能是您的公司网络削减了对外部存储库的请求,或者它暂时处于关闭状态.

It should list your project effective repositories. Ensure that there is Central Repository (https://repo.maven.apache.org/maven2/) listed. If it is there, then maybe your corporate network cuts requests to external repositories or it was temporarily down.

这篇关于AEM Mocks缺少最新版本的工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 17:00