问题:
使用idea打包是,提示:
[ERROR] Failed to execute goal :maven-resources-plugin:3.2.0:resources (default-resources) on project dubbo-provider: 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] /confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dubbo-provider
找了很多办法都没有解决,最后修改了 :maven-resources-plugin 的版本可以了:
<plugin>
<groupId></groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>
具体问题产生的原因,我猜测是插件版本加载错了,但具体怎么产生的就不得而知了,遇到相同问题的人们,可以参考一下,如果有更好的解决办法或者了解原因的读者,欢迎在下方留言哦。