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

Unobfuscated uber jar error with maven: com/adobe/aem/uber-jar/6.2.0-SP1/uber-jar-6.2.0-SP1-apis.jar; error in opening zip file

sanjeevkumart78
Level 2
Level 2

I am trying to compile using the unobfuscated version of uber jar. But the source fails to compile. I downloaded the jar files from https://daycare.day.com/home/products/uberjar.html.

 

com/adobe/aem/uber-jar/6.2.0-SP1/uber-jar-6.2.0-SP1-apis.jar; error in opening zip file

 

/Users/2011864/work/property-sites/core/src/main/java/com/hyatt/propertySites/core/listeners/SimpleResourceListener.java:[21,28] package org.apache.sling.api does not exist

0 Replies
vjetty
Level 4
Level 4

Hi, Sanjeev

Try to include your uberjar "uber-jar-6.2.0-SP1-apis.jar" manually into your .m2 folder and build.

Or

Try deleting .m2 folder and make sure your dependency is included for uberjar in your pom, then use "mvn clean install".

This might help!

Thanks,

Vamsi

sanjeevkumart78
Level 2
Level 2

Vamsi,

   Thanks for your reply. I did clear my .m2 and did a mvn install:install. I still the same problem. The simple jar -tvf command also fails. I get an zip exception.

Thanks,

Sanjeev

sanjeevkumart78
Level 2
Level 2

yes I did. 

 

mvn install:install-file -Dfile=uber-jar-6.2.0-SP1-apis.jar -DgroupId=com.adobe.aem -DartifactId=uber-jar -Dversion=6.2.0-SP1 -Dclassifier=apis -Dpackaging=jar