AEM 6.4 CQ Commons

Avatar

Avatar
Validate 10
Level 3
Shakthi1
Level 3

Likes

5 likes

Total Posts

96 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
Shakthi1
Level 3

Likes

5 likes

Total Posts

96 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
Shakthi1
Level 3

03-09-2018

The below error is displayed when bundles are deployed in AEM 6.4.Request you to please advsie the exact versions of the Dependencies that should be inlcuded in POM file.

com.day.cq.commons,version=[5.6,6) -- Cannot be resolved

com.day.cq.commons.jcr,version=[5.6,6) -- Cannot be resolved

com.day.cq.mailer,version=[5.6,6) -- Cannot be resolved

com.day.cq.replication,version=[5.12,6) -- Cannot be resolved

Current versions are :

<dependency>

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

<artifactId>cq-mailer</artifactId>

<version>5.6.4</version>

<scope>provided</scope>

</dependency>

<dependency>

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

<artifactId>cq-commons</artifactId>

<version>5.6.4</version>

<scope>provided</scope>

</dependency>

<dependency>

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

<artifactId>cq-wcm-commons</artifactId>

<version>5.8.8</version>

<scope>provided</scope>

</dependency>

<dependency>

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

<artifactId>cq-wcm-core</artifactId>

<version>5.7.2</version>

<scope>provided</scope>

</dependency>

<dependency>

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

<artifactId>cq-wcm-foundation</artifactId>

<version>5.6.4</version>

<scope>provided</scope>

</dependency>

The below was also included in the pom file.

<dependency>

<groupId>com.adobe.aem</groupId>

<artifactId>uber-jar</artifactId>

<version>6.4.0</version>

<classifier>apis</classifier>

<scope>provided</scope>

</dependency>

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

05-09-2018

Hi,

this is also part of uber.jar

so you can remove this as well POM.

As Scott suggested build a fresh project using archetype 13 and compare your POM with that and remove unnecessary dependencies from your POM. If you are using eclipse you can see all the packages/Classes added inside uber jar.

Avatar

Avatar
Validate 10
Level 3
Shakthi1
Level 3

Likes

5 likes

Total Posts

96 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
Shakthi1
Level 3

Likes

5 likes

Total Posts

96 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
Shakthi1
Level 3

05-09-2018

That means should I create the project structure from the beginning.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

05-09-2018

Its the best way for AEM 6.4 development. Trying to make a project built for an older AEM version work in the current version is error prone.

Much better to build an AEM project with its corresponding Maven Archetype project. For 6.4 - its Archetype 13.