Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

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 Accepted Solution

Avatar

Correct answer by
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  

View solution in original post

4 Replies

Avatar

Correct answer by
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.