dependencies in pom.xml file

Avatar

Avatar

veerareddyc2547

Avatar

veerareddyc2547

veerareddyc2547

27-06-2016

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Ratna_Kumar

MVP

Avatar

Ratna_Kumar

MVP

Ratna_Kumar
MVP

27-06-2016

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.

Answers (2)

Answers (2)

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.7K

Likes

1.0K

Correct Reply

1.1K
kautuk_sahni
Community Manager

27-06-2016

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

27-06-2016

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.