Problem: maven error opening zip file Solution: delete .m2 for a fresh start

May 5, 2016 at 10:33 pm Leave a comment

I created a new maven 4.0.0 project in eclipse via File/New/Other/Maven Projekt on Windows.

I put in some extra dependency in the pom.xml and then after some Project/Clean… and Run/Run As/Maven Clean and Run/Run As/Maven Install , I got the following problem:

[ERROR] Failed to parse plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.3.1 (C:\Users\\.m2\repository\org\apache\maven\plugins\maven-install-plugin] –>.3.1\maven-install-plugin-2.3.1.jar): error in opening zip file -> [Help 1]

I don’t know how the error came about. I am not sure whether I already had a .m2 folder with old broken content from earlier projects.
But I know that it helped to delete the complete .m2-directory with the repository (if you don’t mind about all the stuff that you already downloaded there.)

C:\Users\<username>.m2

I did this after reading that one might try deleting

C:\Users\<username>\.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.3.2

I read it on this helpful site:
https://www.genuitec.com/forums/topic/all-maven-projects-start-with-failure-cannot-open-zip-file/

Advertisements

Entry filed under: software, software error.

wsdl webservice from Outlook Web App

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Blog Stats

  • 16,203 hits

%d bloggers like this: