操作系统windows

本地要配置过maven环境

cmd  运行命令

mvn install:install-file -Dfile=D:\commons-net-3.6.jar.jar -DgroupId=commons-net -DartifactId=commons-net -Dversion=3.6 -Dpackaging=jar

<dependency>
  <groupId>commons-net</groupId>
  <artifactId>commons-net</artifactId>
  <version>3.6</version>
</dependency>

DgroupId 对应 groupld

DartifactId 对应 artifactId

Dversion 对应version

回车允许命令,成功示意图

jar包添加到maven本地仓库

 

相关文章:

  • 2021-09-27
  • 2017-11-28
  • 2021-11-28
  • 2021-01-21
  • 2019-08-10
  • 2021-09-27
  • 2021-09-27
  • 2021-12-08
猜你喜欢
  • 2021-12-08
  • 2021-09-27
  • 2018-03-02
  • 2021-10-07
  • 2018-05-09
  • 2021-09-27
  • 2021-09-27
相关资源
相似解决方案