AEM 6.1 | WCMUse API deprecated | Community
Skip to main content
Naveen_AEM_dev
Level 4
February 29, 2016
Solved

AEM 6.1 | WCMUse API deprecated

  • February 29, 2016
  • 2 replies
  • 4123 views

Folks,

I'm currently developing some components using Sightly on AEM 6.1 and discovered that the com.adobe.cq.sightly.WCMUse is deprecated. I've currently used the below maven dependency for the aem uber jar,

<dependency>

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

            <artifactId>uber-jar</artifactId>

            <classifier>apis</classifier>

</dependency>

After some digging on the net, I discovered that the com.adobe.cq.sightly.WCMUse is deprecated because Adobe has donated the Sightly project to the Apache Foundation. But I haven't been able to find the appropriate maven dependency to include the right packages for sightly.

Can someone please help me with the required maven dependency for Sightly?

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 awadheshv

use com.adobe.cq.sightly.WCMUsePojo from obfuscated-apis. following dependency-

 

        <dependency>
            <groupId>com.adobe.aem</groupId>
            <artifactId>uber-jar</artifactId>
            <version>6.1.0</version>
            <scope>provided</scope>
            <classifier>obfuscated-apis</classifier>
        </dependency>

2 replies

awadheshvAccepted solution
Level 3
February 29, 2016

use com.adobe.cq.sightly.WCMUsePojo from obfuscated-apis. following dependency-

 

        <dependency>
            <groupId>com.adobe.aem</groupId>
            <artifactId>uber-jar</artifactId>
            <version>6.1.0</version>
            <scope>provided</scope>
            <classifier>obfuscated-apis</classifier>
        </dependency>

Naveen_AEM_dev
Level 4
February 29, 2016

awadheshv wrote...

use com.adobe.cq.sightly.WCMUsePojo from obfuscated-apis. following dependency-

 

        <dependency>
            <groupId>com.adobe.aem</groupId>
            <artifactId>uber-jar</artifactId>
            <version>6.1.0</version>
            <scope>provided</scope>
            <classifier>obfuscated-apis</classifier>
        </dependency>

 

Thanks for sending this across, this takes care of the warnings around using a deprecated API.