I was using maven to build and compile a spring project and here\'s what I got an error about \"error in opening zip file.\". I attached the settings.xml here to show that I con
Got the same issue. This worked for me.
Check your maven version
HOME>> mvn -version
3.0.3
I updated this to maven 3.2.1 and change the path in bash_profile
. Now check it again.
HOME>> mvn -version
If it is updated, delete the repository and close the terminal. Reopen the terminal and type
Project Path >> mvn clean install
If it not updated, then type following
HOME>> echo $JAVA_HOME
HOME>> which java
/usr/share/java(for e.g.)
HOME>> cd /usr/share/java
HOME>> open .
You will see maven old version contents in it. Replace the contents of this with new version contents.
Then delete the repository.
Project Path>> mvn clean install
Now all your maven jars will be downloaded.
Hope this will help you.
Deleting the repository folder solved the issue.
Delete C:\Users\AMT\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4.3\maven-resources-plugin-2.4.3.jar
or better still C:\Users\AMT\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.4.3\
folder and try again.
Evidently, the jar file is incomplete or corrupted.