Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

2 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

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.