Skip to main content
Naveen_AEM_dev
Level 4
Feb 29, 2016 3:01 AM UTC
Solved

AEM 6.1 | WCMUse API deprecated

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.
awadheshvAccepted solution
Level 3
Feb 29, 2016 4:14 AM UTC

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
Feb 29, 2016 4:14 AM UTC

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>

Translate
Naveen_AEM_dev
Level 4
Feb 29, 2016 11:22 AM UTC

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.

Translate