Skip to main content
GK-007
Level 9
May 8, 2016 6:44 PM UTC
Solved

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

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.
edubey
edubeyAccepted solution
Level 10
May 9, 2016 3:18 AM UTC

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

edubey
edubeyAccepted solution
Level 10
May 9, 2016 3:18 AM UTC

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

Translate
GK-007
GK-007Author
Level 9
May 9, 2016 8:22 AM UTC

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

Translate