In 6.2 if you create a project with archetype 10 and deploy it on aem the bundle remains in installed state coz.
Error:
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).
Solution
So to fix this add the following dependency.
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-atinject_1.0_spec</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
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 😊🙏