IDEA中Maven项目 导入依赖失败
问题:
当在pom中随便添加某依赖,比如:
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>3.0.4</version>
</dependency>
会拉取失败,并给出下载的地址。点击下载的地址会跳转到浏览器,自动下载该jar包。这是什么原因?(Windows10环境下)
报错信息如下:
Could not transfer artifact org.mongodb:mongo-java-driver:pom:3.0.4 from/to alimaven (http://maven.aliyun.com/nexus/content/repositories/central/): Transfer failed for http://maven.aliyun.com/nexus/content/repositories/central/org/mongodb/mongo-java-driver/3.0.4/mongo-java-driver-3.0.4.pom
红色的就是给出的下载链接
settings.xml已经是阿里的,如下:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
哪位大神知道啥原因吗?