栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

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

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文件中的版本一致:



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

这段删除后再次编译就通过了:

而且可以看到用的maven-resources-plugin的版本是2.6。问题是解决了,但不知道原因是什么,版本太高不支持?

我的maven版本是3.6.1:

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/775481.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号