Failed to parse plugin descriptor for org.apache.maven.plugins:maven-resources-plugin:2.4.3.. error in opening zip file

后端 未结 3 1338
庸人自扰
庸人自扰 2021-02-07 01:48

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

3条回答
  •  后悔当初
    2021-02-07 02:11

    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.

提交回复
热议问题