Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

dependencies in pom.xml file

veerareddyc2547
Level 3
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
Ratna_Kumar
Correct answer by
Community Advisor
Community Advisor

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
Ratna_Kumar
Correct answer by
Community Advisor
Community Advisor

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

smacdonald2008
Level 10
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. 

kautuk_sahni
Community Manager
Community Manager

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