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

后端 未结 4 2676
孤街浪徒
孤街浪徒 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:34

    Some times if any of the html file opened in browser and with noticing that if you do mvn clean.... it is giving same error.

    So make sure to close all reports files from browsers. and then do clean.

    0 讨论(0)
  • 2021-02-20 18:41

    cause Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project **Project: Failed to clean project:project Failed to delete

    method: The Java. Exe to take up the project of a jar file. Solutions and enable the task manager to Java. Exe, perform cleanup again can

    0 讨论(0)
  • 2021-02-20 18:48

    In my own case, I realized I had in use the folder described by such error by another program (a.k.a file explorer, terminal). Once closed this another program, the project compiled right.

    0 讨论(0)
  • 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.

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