Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法

编译maven项目,在资源文件拷贝的时候报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project xxx: Input length = 1 -> [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

Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法_第1张图片
上面提示中可以看到用的maven-resources-plugin是3.2.0,与pom文件中的版本一致:
Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法_第2张图片
Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法_第3张图片


                org.apache.maven.plugins
               maven-resources-plugin
                3.2.0

这段删除后再次编译就通过了:
Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法_第4张图片
而且可以看到用的maven-resources-plugin的版本是2.6。问题是解决了,但不知道原因是什么,版本太高不支持?
Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法_第5张图片
我的maven版本是3.6.1:
Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法_第6张图片

你可能感兴趣的:(java,java,后端)