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

后端 未结 3 1332
庸人自扰
庸人自扰 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.

    0 讨论(0)
  • 2021-02-07 02:26

    Deleting the repository folder solved the issue.

    0 讨论(0)
  • 2021-02-07 02:27

    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.

    0 讨论(0)
提交回复
热议问题