找到.m2文件夹,配置一下settings.xml,不存在就创建settings.xml.
https://blog.csdn.net/lingyiwin/article/details/81008231
内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
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">
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>neuroph.sourceforge.net</id>
<mirrorOf>*</mirrorOf>
<url>http://neuroph.sourceforge.net/maven2/</url>
</mirror>
</mirrors>
</settings>