コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

aem-sdk-api missing com.day.cq.wcm.api.constants.NameConstants (replacement for com.day.cq.wcm.api.NameConstants)

Avatar

Level 1

Hello everyone,

is the current aem-sdk-api package (version 2022.10.9398.20221020T071514Z-220900) missing the package com.day.cq.wcm.api.constants and therein the interface NameConstants?

The predecessor com.day.cq.wcm.api.NameConstants is now deprecated and states that it is replaced by com.day.cq.wcm.api.constants.NameConstants, but that interface is nowhere to be found in the SDK.

Any hints would be greatly appreciated.

Thanks,

Jan

1 受け入れられたソリューション

Avatar

正解者
Employee Advisor

I believe its just a warning and would not fail your build, if you use 

com.day.cq.wcm.api.NameConstants

However, this issue might get fixed in the next set of releases for AEM SDK.

 

@janiwe  

元の投稿で解決策を見る

4 返信

Avatar

正解者
Employee Advisor

I believe its just a warning and would not fail your build, if you use 

com.day.cq.wcm.api.NameConstants

However, this issue might get fixed in the next set of releases for AEM SDK.

 

@janiwe  

Avatar

Level 1

Agreed, it's only a warning (and a code smell) right now, but no way for us to get around this unless the SDK is updated.

Thanks for the clarification!

Avatar

Level 1

Hi @krati_garg, The issue exists. We are using SDK version 2023.2.11289.20230224T170559Z. Please suggest what is to be done to mitigate this.

Avatar

Level 1

This issue is fixed in SDK version 2023.4.11835.20230414T234523Z. NameConstant is available in com.day.cq.wcm.api.constants package.