本文主要是介绍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
上面提示中可以看到用的maven-resources-plugin是3.2.0,与pom文件中的版本一致:
将
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.2.0</version>
</plugin>
这段删除后再次编译就通过了:
而且可以看到用的maven-resources-plugin的版本是2.6。问题是解决了,但不知道原因是什么,版本太高不支持?
我的maven版本是3.6.1:
这篇关于Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin解决方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!