Uber Jar is not recognizing and downloading into local .m2 repository | Community
Skip to main content
GK-007
New Participant
May 8, 2016
Solved

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

  • May 8, 2016
  • 2 replies
  • 743 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

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

2 replies

GK-007
GK-007Author
New Participant
May 9, 2016

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

edubey
edubeyAccepted solution
New Participant
May 9, 2016

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