Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1

后端 未结 4 2670
孤街浪徒
孤街浪徒 2021-02-20 18:22

I\'m doing a maven project,and my IDE is Eclipse。What I cannot grasp is when I use “clean -X” in Eclipse,it will report the following error:

Apache Maven 3.0.4 (         


        
4条回答
  •  醉话见心
    2021-02-20 18:52

    It looks like there is a symlink in your project which eclipse cannot delete ( search the above for 'dangling symlink') . Try deleting the file manually once and also check it's permissions.

    From command line which user do you run 'mvn clean' as ?

    By the 'file' I mean the jpg file listed just before the clean fails.

    Failed to clean project: Failed to delete /Users/lingxiubo/Desktop/chenyl/soft-enrol/target/soft-enrol/resource/image/login/?????? 1011_theme_asia.jpg

    Update

    Finally, it turned out that there were some special characters in one of the file names which were causing Eclipse' maven to hiccup.

提交回复
热议问题