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
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

03-09-2018

You should be able to remove the version numbers from explicit dependencies, as they are included in the uber.jar

Jörg

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

Thanks a lot.I will remove those do build and deploy.

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

I removed the version numbers .

like the below

<dependency>

<groupId>com.adobe.granite</groupId>

<artifactId>com.adobe.granite.replication.core</artifactId>

</dependency>

but get the below on the child pom xmls.

'dependencies.dependency.version' for com.adobe.granite:com.adobe.granite.replication.core:jar is missing.

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

03-09-2018

Hm, my bad.

Then you need to add the version number of the bundle in your AEM 6.4 instance, you can find them in the OSGI webconsole (/system/console/bundles).

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

Thanks for the clarification.

The below jars are not present in adobe repo.But these are the version on the AEM 6.4 bundle page.

Please can you advise the location where these jars can be obtained.

cq-msm-api-5.9.2.jar

cq-msm-core-5.11.24.jar

cq-commons-5.11.12.jar

cq-tagging-5.11.36.jar

cq-mailer-5.12.4.jar

Index of /repositories/public

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

These jars are not present on ADOBE Repo. Please can you suggest some of the versions that will be compatible.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,314 posts

Correct reply

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

05-09-2018

Hi,

Remove all the dependencies for below from POM all the classes/packages are already part of uber jar.

cq-msm-api-5.9.2.jar

cq-msm-core-5.11.24.jar

cq-commons-5.11.12.jar

cq-tagging-5.11.36.jar

cq-mailer-5.12.4.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

Yes i deleted the references for the above jar .But now get the below

org.apache.sling.jcr.resource,version=[2.4,3) -- Cannot be resolved

This is the only issue now i ahve on the bundles.

Below is the code form the pom file.Can you suggest a version which i can add.

2.9.2 is not working.

<dependency>

<groupId>org.apache.sling</groupId>

<artifactId>org.apache.sling.jcr.resource</artifactId>

<version>2.9.2</version>

<scope>provided</scope>

</dependency>

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 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,409 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

You are trying to build a bundle the way they were built in AEM 5.x. That is - trying to reference separeate JAR files - that does not work now.

In AEM 6.4 - you build with Maven Archetype and reference the UBER JAR - as discussed here:

Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13

Building with the correct Maven Archetype automatically sets the correct dependencies.