其实我自己也不知道为什么错了,但是找了好久的答案,终于解决了。现在把方案放上来,仅供参考。
修改 setting.xml文件
setting.xml文件的地址可以通过Windows-Preferences-Maven-User Settings 查看
原setting.xml文件
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
</mirrors>
更改为