You are using "tasks’ which has been removed from the maven-antrun-plugin. Please use 'target' and refer to the >>Major Version Upgrade to version 3.0.0<< on the plugin site
以上异常为maven版本过高
解决方法:
解决方案一:降低antrun插件版本
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
解决方案二:降低maven版本