Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

dependencies in pom.xml file

Avatar

Level 3

Hi,

   I am creating project through maven,always my bundle is in INSTALLED position if i use of these dependencies in pom.xml file  and what is the use these dependencies.

<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.1.0</version>
<scope>provided</scope>
<classifier>obfuscated-apis</classifier>
</dependency>

 

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-atinject_1.0_spec</artifactId>
    <version>1.0</version>
    <scope>provided</scope>
</dependency>

 

Regards

VeeraReddy.Ch

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Basically these dependencies must be included, if you use AEM6.2

See this article that that will solves your question: https://helpx.adobe.com/experience-manager/using/first-arch10.html

This dependency must be added for AEM6.2

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-atinject_1.0_spec</artifactId>
    <version>1.0</version>
    <scope>provided</scope>
</dependency>

Look into these article here: https://helpx.adobe.com/experience-manager/using/slingmodel_62.html

Hope this helps!

Thanks,
Ratna Kumar.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi,

Basically these dependencies must be included, if you use AEM6.2

See this article that that will solves your question: https://helpx.adobe.com/experience-manager/using/first-arch10.html

This dependency must be added for AEM6.2

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-atinject_1.0_spec</artifactId>
    <version>1.0</version>
    <scope>provided</scope>
</dependency>

Look into these article here: https://helpx.adobe.com/experience-manager/using/slingmodel_62.html

Hope this helps!

Thanks,
Ratna Kumar.

Avatar

Level 10

As Ratna points out - this dependency is used for Sling Models: 

<dependency>
    <groupId>org.apache.geronimo.specs</groupId>
    <artifactId>geronimo-atinject_1.0_spec</artifactId>
    <version>1.0</version>
    <scope>provided</scope>
</dependency>

See the  https://helpx.adobe.com/experience-manager/using/slingmodel_62.html article. 

Avatar

Administrator

Hi 

The dependency mentioned above is used for Sling Models.

Please refer the articles:- 

Link:-  https://helpx.adobe.com/experience-manager/using/first-arch10.html

Link:- https://helpx.adobe.com/experience-manager/using/slingmodel_62.html article

//With AEM 6.2 the javax.inject package is exported with version 1.0.0 byorg.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)  (Link:- https://github.com/Adobe-Marketing-Cloud/aem-project-archetype/issues/59)

 

Thanks and Refards

Kautuk Sahni



Kautuk Sahni