手动添加MVN依赖(jar包)

1、进入MAVEN仓库或者获取本地依赖包

Maven Repository: Search/Browse/Explore (mvnrepository.com)

 

2、在依赖包文件夹内启动cmd,输入添加jar包的指令

mvn install:install-file -DgroupId=MAVEN中的groupId -Dversion=MAVEN中的version -Dpackaging=jar -Dfile=对应依赖的jar包完整地址 -Dmaven.repo.local=指定MAVEN仓库的地址,可以不写 

posted @ 2024-04-12 14:20  Lee597  阅读(203)  评论(0)    收藏  举报