当前位置: 代码迷 >> 综合 >> Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0 报错
  详细解决方案

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0 报错

热度:103   发布时间:2023-11-03 14:17:04.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则打包成功。

  相关解决方案