AEM 6.5 issue | Community
Skip to main content
Level 2
Sep 20, 2019 7:21 AM UTC
Solved

AEM 6.5 issue

I'm trying to run AEM 6.5 and this is what i am getting

com.day.cq.dam.commons.util,version=[1.50,2) -- Cannot be resolved

There is no content

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Umesh_Sondhi
Umesh_SondhiAccepted solution
Level 4
Sep 20, 2019 7:25 AM UTC

You can add the maven dependency in your pom.xml and build and install the code in AEM

<dependency>
  <groupId>com.day.cq.dam</groupId>
  <artifactId>cq-dam-commons</artifactId>
  <version>5.6.6</version>
  <scope>provided</scope>
</dependency>

check if the issue still persist.

4 replies

Ankur_Khare
New Participant
Oct 10, 2019 3:29 AM UTC

Could you please check the version of com.day.cq.dam coming from uber jar (check uber jar for 6.5).

And also check in your pom.xml files anywhere you might have added dependency for com.day.cq.dam the version for com.day.cq.dam should be same as uber jar.

Translate
ronnyfm
Level 4
Oct 9, 2019 9:19 PM UTC

I agree, but even using the dependecy returned by depfinder,

<dependency>

    <artifactId>cq-dam-commons</artifactId>

    <version>5.12.54</version>

    <groupId>com.day.cq.dam</groupId>

    <scope>provided</scope>

</dependency>

I am getting the same exception.

Translate
Employee
Sep 20, 2019 11:23 AM UTC

Uber jar for 6.5 should already have "com.day.cq.dam" embedded. I would recommend using uber-jar instead of adding manual dependencies. More details at [1]

[1]  How to Build AEM Projects using Apache Maven

Translate
Umesh_Sondhi
Umesh_SondhiAccepted solution
Level 4
Sep 20, 2019 7:25 AM UTC

You can add the maven dependency in your pom.xml and build and install the code in AEM

<dependency>
  <groupId>com.day.cq.dam</groupId>
  <artifactId>cq-dam-commons</artifactId>
  <version>5.6.6</version>
  <scope>provided</scope>
</dependency>

check if the issue still persist.

Translate