error reading C:\Users\mayur\.m2\repository\com\adobe\aem\uber-jar\6.5.0\uber-jar-6.5.0.jar; zip END header not found | Community
Skip to main content
January 17, 2023
Solved

error reading C:\Users\mayur\.m2\repository\com\adobe\aem\uber-jar\6.5.0\uber-jar-6.5.0.jar; zip END header not found

  • January 17, 2023
  • 2 replies
  • 1698 views

I am trying to create new AEM project with archetype 

 

mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=27 -D aemVersion=6.5.0 -D appTitle="My Site" -D appId="mysite" -D groupId="com.mysite" -D frontendModule=general -D includeExamples=y

Please help me resolve this

 

Error [ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error reading C:\Users\mayur\.m2\repository\com\adobe\aem\uber-jar\6.5.0\uber-jar-6.5.0.jar; zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/listeners/package-info.java:[16,1] cannot access com.mysite.core.listeners
zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/filters/package-info.java:[16,1] cannot access com.mysite.core.filters
zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/servlets/package-info.java:[16,1] cannot access com.mysite.core.servlets
zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/models/HelloWorldModel.java:[16,1] cannot access com.mysite.core.models
zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/schedulers/package-info.java:[16,1] cannot access com.mysite.core.schedulers
zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/listeners/SimpleResourceListener.java:[41,8] cannot access java.lang
zip END header not found
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/listeners/SimpleResourceListener.java:[41,48] cannot find symbol
symbol: class EventHandler
[ERROR] /D:/aem_project/mysite/core/src/main/java/com/mysite/core/listeners/SimpleResourceListener.java:[35,2] cannot find symbol
symbol: class Component

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 Kiran_Vedantam

HI @mayuri_admanre 

 

The JAR in your local Maven cache is corrupt.

Just delete the file

.m2/com.some_company/any_random.jar

 

Hope this helps!


Thanks,
Kiran Vedantam.

2 replies

Manu_Mathew_
Community Advisor
Community Advisor
January 17, 2023

@mayuri_admanre have you tried deleting/renaming the repository folder in the ".m2" folder and running the cmd in the admin cmd prompt?

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
January 17, 2023

HI @mayuri_admanre 

 

The JAR in your local Maven cache is corrupt.

Just delete the file

.m2/com.some_company/any_random.jar

 

Hope this helps!


Thanks,
Kiran Vedantam.