AEM捆绑包未加载,因为存在未解决的依赖关系。

huangapple go评论48阅读模式
英文:

AEM bundle not loading due to unresolved dependency

问题

在项目的所有POM文件中进行了次要版本更改后,核心捆绑包由于与核心组件的未解决依赖而无法正确启动:

com.adobe.cq.wcm.core.components.models,version=[12.28,13) -- 无法解析

即使单击“播放”按钮启动它,捆绑包仍保持在“已安装”状态。

我们使用AEM云SDK,该SDK应该已集成核心组件。

我尝试过清理.m2 Maven存储库文件夹,使用不同的标志(autoInstallPackage和autoInstallSinglePackage)重新编译项目...但没有运气。

编辑:

编译成功并且实例正常启动,但在访问任何页面时,甚至在编辑模式下也会显示错误。

英文:

After a minor version change in all POM files of the project, core bundle does not start properly due to an unresolved dependency with core components:

com.adobe.cq.wcm.core.components.models,version=[12.28,13) -- Cannot be resolved

The bundle remains in state "Installed" even when the "play" button is clicked to start it.

We are using AEM cloud SDK, which is supposed to have the core components integrated.

I've tried cleaning the .m2 maven repository folder, recompile the project with different flags (autoInstallPackage and autoInstallSinglePackage)... but no luck.

Edit:

Compilation is successful and instance starts properly, but an error is shown when visiting any page, even in edit mode.

答案1

得分: 1

根本原因是pom.xml文件中的<aem.sdk.api>属性。它被设置为高于实例SDK API的版本。显然,每月下载新版本的SDK是与AEM云实例保持本地环境同步的推荐方法:https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/local-development-environment-set-up/aem-runtime.html?lang=en#when-to-update-the-quickstart-jar

英文:

The root cause was the <aem.sdk.api> property in the pom.xml file. It was set to a version higher than the instance SDK API. Apparently, download a new version of the SDK monthly is the recommended way to keep your local environment in sync with your AEM cloud instances: https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/local-development-environment-set-up/aem-runtime.html?lang=en#when-to-update-the-quickstart-jar

huangapple
  • 本文由 发表于 2023年6月2日 00:22:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76383916.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定