我在配置testNG环境的时候,需要配置maven环境,mvn help:system ,运行这条命令的目的是为了让Maven执行一个真正的任务(其实我不是很懂这句,先配上再说啦)参考:https://blog.csdn.net/xuelanlingying/article/details/88421012

执行命令后,运行了较长时间,最后出现了报错信息:failed to execute goal org.apache.maven.plugin:maven-pluginhelp.....maven在配置maven-help-plugin时报错

百度后看到解决方法~需要修改maven的配置文件,找到maven的setting.xml(路径:\Maven\apache-maven-3.5.4\conf)

<mirror>
      <id>nexus-aliyun</id>
      <mirrorOf>*</mirrorOf>
      <name>Nexus aliyun</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

再次尝试就可以了mvn help:systom就可以了

maven在配置maven-help-plugin时报错

 

相关文章: