Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Uber upgrade from 6.5.3 to 6.5.13 : Compilation error

Avatar

Level 1

We upgraded AEM SP to 6.5.17 from 6.5.12. We had uber-jar at 6.5.3.6 and now we are upgrading that to 6.5.13. While compiling after upgrade, getting below error 

The import com.day.cq.dam.entitlement cannot be resolved

import com.day.cq.dam.entitlement.api.EntitlementConstants

 

The code is referring 

ASSETS_DYNAMICMEDIA_FEATURE_FLAG_PID from EntitlementConstants class 

 

The uber 6.5.3.6  has the reference https://javadoc.io/static/com.adobe.aem/uber-jar/6.3.3.6/com/day/cq/dam/entitlement/api/EntitlementC... available, but not seeing the same in 6.5.13 at https://javadoc.io/doc/com.adobe.aem/uber-jar/6.5.13/index.html 

 

Any directions on how to fix this error will be helpful

 

shijuc94592906_0-1698771797778.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @shijuc94592906 

 

The API still exists. Please try adding the dependency in your pom.xml and try

<dependency>
	<artifactId>cq-dam-entitlement</artifactId>
	<version>1.4.36</version>
	<groupId>com.day.cq.dam</groupId>
	<scope>provided</scope>
</dependency>

 

For version, please visit http://localhost:4502/system/console/depfinder on AEM with the updated SP.

Add the "com.day.cq.dam.entitlement.api.EntitlementConstants" in Package textbox and click find. Copy the version displayed

aanchalsikka_0-1698810469105.png

 

 

 


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @shijuc94592906 

 

The API still exists. Please try adding the dependency in your pom.xml and try

<dependency>
	<artifactId>cq-dam-entitlement</artifactId>
	<version>1.4.36</version>
	<groupId>com.day.cq.dam</groupId>
	<scope>provided</scope>
</dependency>

 

For version, please visit http://localhost:4502/system/console/depfinder on AEM with the updated SP.

Add the "com.day.cq.dam.entitlement.api.EntitlementConstants" in Package textbox and click find. Copy the version displayed

aanchalsikka_0-1698810469105.png

 

 

 


Aanchal Sikka