编译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-plugin3.2.0
这段删除后再次编译就通过了:
而且可以看到用的maven-resources-plugin的版本是2.6。问题是解决了,但不知道原因是什么,版本太高不支持?
我的maven版本是3.6.1:



