WCMUsePojo in AEM6.3 not working | Community
Skip to main content
Employee
June 9, 2017
Solved

WCMUsePojo in AEM6.3 not working

  • June 9, 2017
  • 13 replies
  • 5109 views

Hi,

I have started developing on AEM 6.3 but there are some dependency issues. The package com.adobe.cq.sightly is not resolved in aem 6.3 felix console. It gives error like this

com.adobe.cq.sightly com.adobe.cq.sightly,version=[3.1,4) -- Cannot be resolved

I am using a class which extends WCMUsePojo. I have also included uber.jar in the pom.

Can you point me to if there is some change here in 6.3 for this. Is it that it now allows only sling models to use ?

Regards,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Just tested this - only difference from this artilce

Adobe Experience Manager Help | Creating an Adobe Experience Manager HTML Template Language component that uses the WCMU…

is use this:

dependency>

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

               <artifactId>uber-jar</artifactId>

               <version>6.3.0</version>

               <!-- for AEM6.1 use this version     : <version>6.1.0</version> -->

               <!-- for AEM6.1 SP1 use this version : <version>6.1.0-SP1-B0001</version> -->

               <!-- for AEM6.1 SP2 use this version : <version>6.1.0-SP2</version> -->

               <!-- for AEM6.2 use this version     : <version>6.2.0</version> -->

               <classifier>obfuscated-apis</classifier>

               <scope>provided</scope>

           </dependency>

          

           <dependency>

               <groupId>org.apache.geronimo.specs</groupId>

               <artifactId>geronimo-atinject_1.0_spec</artifactId>

               <version>1.0</version>

               <scope>provided</scope>

           </dependency>

New article here: https://helpx.adobe.com/experience-manager/using/aem63_htl.html

13 replies

smacdonald2008
smacdonald2008Accepted solution
New Participant
June 9, 2017

Just tested this - only difference from this artilce

Adobe Experience Manager Help | Creating an Adobe Experience Manager HTML Template Language component that uses the WCMU…

is use this:

dependency>

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

               <artifactId>uber-jar</artifactId>

               <version>6.3.0</version>

               <!-- for AEM6.1 use this version     : <version>6.1.0</version> -->

               <!-- for AEM6.1 SP1 use this version : <version>6.1.0-SP1-B0001</version> -->

               <!-- for AEM6.1 SP2 use this version : <version>6.1.0-SP2</version> -->

               <!-- for AEM6.2 use this version     : <version>6.2.0</version> -->

               <classifier>obfuscated-apis</classifier>

               <scope>provided</scope>

           </dependency>

          

           <dependency>

               <groupId>org.apache.geronimo.specs</groupId>

               <artifactId>geronimo-atinject_1.0_spec</artifactId>

               <version>1.0</version>

               <scope>provided</scope>

           </dependency>

New article here: https://helpx.adobe.com/experience-manager/using/aem63_htl.html

smacdonald2008
New Participant
June 9, 2017

We need a community article on this. This is on our ToDo list.

Feike_Visser1
Employee
June 9, 2017

WCMUsePojo works on 6.3

Can you test the package here on 6.3? And then maybe compare the diffs?

GitHub - heervisscher/htl-examples: AEM HTL examples