Sling model inject annotation issue in Aem 6.2

In 6.2 if you create a project with archetype 10 and deploy it on aem the bundle remains in installed state coz.


javax.inject,version=[0.0,1) — Cannot be resolved

With AEM 6.2 the javax.inject package is exported with version 1.0.0 by org.apache.geronimo.specs.geronimo-atinject_1.0_spec. Before that it was exported with version 0.0.0, and the core bundle ( when compiled ) creates an import range of [0,1).


So to fix this add the following dependency.







1 Comment

  1. Prakriti

    I love how easily and elaborately the AEM concepts are explained out here…they make My work so simple and fun to do ! Thanks a ton Rahul 😊🙏

Leave a Reply

Your email address will not be published. Required fields are marked *