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.