Hi Folks,
I’m facing an issue while upgrading our AEM environment from 6.5.21 to 6.5 LTS. As part of the upgrade, I updated the dependency in our pom.xml like below:
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.6.0</version>
<classifier>apis</classifier>
<scope>provided</scope>
</dependency>
However, during the build process, I’m encountering the following error:
ZipException opening "uber-jar-6.6.0.jar": zip END header not found
Upon inspection, I noticed that the downloaded uber-jar-6.6.0.jar is only 2 KB in size, whereas the previous versions like 6.5.21 and 6.5.22 are around 62 MB and work without issues.
This suggests that the 6.6.0 Uber Jar might be corrupted or incomplete in the public Maven repository. Could you please confirm if this is a known issue then can anyone provide a valid solution for this? If possible kindly provide detailed steps.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @jooca,
According to Adobe documentation AEM 6.5 LTS you have to use apis classifier in your pom every time you are including 6.6.0 uber-jar dependency in your project pom files.
It is because unlike in AEM 6.5, in LTS all public apis are now part of uber-jar-6.6.0-apis.jar not uber-jar-6.6.0.jar. This is why uber-jar-6.6.0.jar is so small, but this is correct, please check the size of uber-jar-6.6.0-apis.jar which you should use.
To solve your issue please make sure that:
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.6.0</version>
<classifier>apis</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<classifier>apis</classifier>
</dependency>
So uber-jar is not corrupted, and all artifacts you can find in maven repository are fine. The main case is to use uber-jar-6.6.0-apis.jar instead of uber-jar-6.6.0.jar.
Hi @jooca ,
Ensure jar file is not corrupted, try after re-downloading.
Some times we get this error with specific java version.
You may try with different supported Java version.
Thanks
Hi @jooca,
According to Adobe documentation AEM 6.5 LTS you have to use apis classifier in your pom every time you are including 6.6.0 uber-jar dependency in your project pom files.
It is because unlike in AEM 6.5, in LTS all public apis are now part of uber-jar-6.6.0-apis.jar not uber-jar-6.6.0.jar. This is why uber-jar-6.6.0.jar is so small, but this is correct, please check the size of uber-jar-6.6.0-apis.jar which you should use.
To solve your issue please make sure that:
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.6.0</version>
<classifier>apis</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<classifier>apis</classifier>
</dependency>
So uber-jar is not corrupted, and all artifacts you can find in maven repository are fine. The main case is to use uber-jar-6.6.0-apis.jar instead of uber-jar-6.6.0.jar.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies