从maven中央仓库手动下载jar包到本地仓库

发布时间 2023-04-05 10:38:49作者: 游走的小鱼

注意!!!:不能自己浏览器下载jar包拖入到本地仓库(原因maven下载有固定格式)

一、浏览器登录maven中央仓库网址

【maven中央仓库网址】https://mvnrepository.com/

二、搜索需要的jar包

 

 

 

三、点击坐标mybatis坐标进入

 

 

四、套用模板

 

mvn dependency:get -DremoteRepositories=url -DgroupId=groupId -DartifactId=artifactId -Dversion=version

 

 

 

 五、win+R输入cmd打开命令窗口,执行刚才生成的代码:

mvn dependency:get -DremoteRepositories=https://mvnrepository.com/artifact/org.mybatis/mybatis -DgroupId=org .mybatis -DartifactId=mybatis -Dversion=3.5.9

 

 

 

 

六、查看maven本地仓库