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:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_54850604/article/details/123632101