When I use WCMUsePojo in AEM 6.3 bundles, bundle is not resolved, as its import package says "com.adobe.cq.sightly,version=[2.5,3) -- Cannot be resolved".
Solved! Go to Solution.
Add the package name in pom.xml of that particular bundle and do mvn clean install. Hope it should work for you.
Example: In your case, add like this in your pom.xml
I am using sling model, and have the same issue, which is "com.adobe.cq.sightly,version=[2.5,3) -- Cannot be resolved", I tried to add the above import-package before or after the <Sling_model-Packages>, the build doesn't work. Just wonder if you can help and let me know where to add this import-package or should we have different syntax for sling model?
Here is part of pom.xml
I get it to work without double quotes around the version
But get another error.
org.apache.sling.models.annotations,version=[1.5,2) -- Cannot be resolved
AEM 6.3 comes with the sling models API 1.3.2, which exports org.apache.sling.models.annotations in version 1.4.0. I just checked the uber.jar for 6.3 as well and it also exports this package in version 1.4.0
When you compile against org.apache.sling.models.annotations,version=[1.5,2)
then you are likely compiling against sling models 1.3.4, which exports this java package in version 1.5.0.
So can you please share your project in a minimal way, so we can try to build it ourselves? For me it seems that you build against different artifacts and not only the AEM 6.3 uber.jar
Hi @Nandhini Marimuthu
I would like confirm that it works for me with your mention.
P/S: I created new project by using maven archetype which is recommended in Creating an Adobe Experience Manager 6.3 Project using Adobe Maven Archetype 11. It's working well. But it won't work once I added more dependencies in the core module.