天天看點

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0 報錯

SpringBoot項目maven install打包,打包過程報錯

具體報錯資訊如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources (default-resources) on project longtoshort: Cannot create resource output directory: G:\Project\school-evaluation\target\classes -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
           

原因:target目錄路徑在xftp中被占用,在xftp關閉相關target目錄,mvn install則打包成功。