有时候遇到别人发的jar包需要放到本地仓库,但是如果直接手动放到本地仓库的路径下是不行的,IDEA加载的时候会不识别,需要命令加载
第一步:
打开IDEA中的maven
如何将本地jar包导入到本地仓库中
第二步:点击M字样(Execute maven goal)
如何将本地jar包导入到本地仓库中
第三步输入指令:
install:install-file -Dfile=D:/Program/pwdfile-1.0.jar -DgroupId=com.asiainfo -DartifactId=pwdfile -Dversion=1.0 -Dpackaging=jar

注释:
D:/Program/pwdfile-1.0.jar 是你要导入的jar包的本地位置
com.asiainfo pom中的 groupId
pwdfile pom中的 artifactId
1.0 你的版本

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-08-15
  • 2021-10-08
  • 2022-12-23
  • 2021-12-18
  • 2022-01-03
猜你喜欢
  • 2022-01-24
  • 2021-09-28
  • 2021-07-16
  • 2021-12-28
  • 2021-04-08
相关资源
相似解决方案