修正setting.xml文件
导入阿里的映射文件,删除原先的mirrors元素
代码:
<?xml version="1.0" encoding="UTF-8"?> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central uk central Human Readable Name for this Mirror. http://uk.maven.org/maven2/ CN OSChina Central http://maven.oschina.net/content/groups/public/ central nexus internal nexus repository <!--http://192.168.1.100:8081/nexus/content/groups/public/--> http://repo.maven.apache.org/maven2 central
然后重启一下idea就能够了