錯誤提示:
Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved
查閱了很多都沒有解決,後來終於找到了一篇博客,解決了問題。
解決方案:
在 pom.xml 文件中添加:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4</version>
</dependency>
在 settings.xml 文件中添加:
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
然後執行maven build 和maven install 解決