官网下载
解压
更换镜像源
打开找mirror,我这里没有vscode,所以用记事本打开
替换为
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
配置私服仓库
再根据localRepository来进行查找
加一行,里面写我们自己创建的仓库地址
idea整合maven
创建一个新的项目
其中Catalog选择internal
Archetype选择maven-archetype-quickstart
点击创建即可
修改maven配置
修改为
在pom.xml中导入springboot的依赖
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.1</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
点击刷新,下载对应的依赖
如果不行可以重启一下再试试