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

Uber Jar is not recognizing and downloading into local .m2 repository

Avatar

Level 9

Hi All,

We i have included uber jar dependency in the parent pom.xml as per the guidelines given in the below URL but this jar is not recognized and also not downloading to .m2 repository.

https://docs.adobe.com/docs/en/aem/6-1/develop/dev-tools/ht-projects-maven.html

I have also added plugin and repository references in the pom as well.

If anyone has idea,please help me.

Thanks,

Kishore

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Kishore,

I am assuming you need obfuscated API.

Include this in parent pom.xml

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

Included this in core pom,xml

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

It should work fine,

Thanks

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi Kishore,

I am assuming you need obfuscated API.

Include this in parent pom.xml

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

Included this in core pom,xml

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

It should work fine,

Thanks

Avatar

Level 9

We are trying to deploy our code onto AEM 6.2 version and added dependency for below classes but still getting compilation errors.

import org.osgi.framework.Constants;
import org.osgi.framework.ServiceReference
;

Parent pom:

<dependency>
                <groupId>org.apache.sling</groupId>
                <artifactId>org.apache.sling.fragment.ws</artifactId>
                <version>1.0.2</version>
                <scope>provided</scope>
  </dependency>

Core pom:

<dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.fragment.ws</artifactId>
 </dependency>

Any idea on usage of this dependency??

Thanks,

Kishore