Expand my Community achievements bar.

SOLVED

AEM 6.1 | WCMUse API deprecated

Avatar

Level 4

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?

1 Accepted Solution

Avatar

Correct answer by
Level 3

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>

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

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>

Avatar

Level 4

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.