Sign in to Community
Sign in to view all badges
While following helpx article:
Developing your first Experience Manager 6.3 Components
after importing the package into aem 6.3 instance. Getting below error in the OSGI Bundle.
getting org.apache.sling.models.annotations,version=[1.5,2) -- Cannot be resolved
Attaching the screenshot as well.
Does aem needs some other version than what is available in pom.xml. Pom.xml has below dependency being used:
Yes Jorg is absolutely correct. I have re-tested the article and AEM 6.3 comes with the version 1.4.0 in Sling models annotation. Below is the screenshot for the same.
Hope this helps!
Thanks all for update.
Issue got resolved by updating dependency for:
in pom.xml. Earlier I had placed version 1.3.4 which was causing issue.
AEM 6.3 comes with org.apache.sling.models.annotations in version 1.4.0. (exported by Bundle Sling Models API version 1.3.2). Your project obviously compiles against a newer version of the Sling Models bundle. Please check your dependencies.
This also bring up a great point - we will also add this artilce to our YouTube channel so community members can see all steps in action.
Did you follow the article exactly - we tested this and never encountered this issue? Did you use Lazybones to setup project?
navinkaushal smacdonald2008 See this?