手记

使用maven遇到过的坑(2)

异常:
Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'mmall'. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies could not be resolved: Failure to transfer...

解决方法:修改maven的setttings.xml镜像为阿里云的
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>

0人推荐
随时随地看视频
慕课网APP