resoving maven dependencies 卡着不动解决方案
1 尝试配置阿里云镜像
在apache-maven-3.6.3\conf\setting.xml中添加镜像文件
<mirror>
<id>aliMaven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
2.修改idea中Maven镜像路径
这个就是你安装的maven根路径
3.在pom.xml文件中配置如下依赖
<dependency>
<!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:1.3.2 not found errors -->
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
重新build即可
Maven install 速度慢问题
在pom.xml中添加如下依赖配置
<repositories>
<repository>
<id>central</id>
<url>http://host:port/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://host:port/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
重新build即可