哎哟,不错哦

导航

jar包添加到maven本地仓库

操作系统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

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

 

posted on 2019-04-01 10:29  哎哟,不错哦  阅读(197)  评论(0编辑  收藏  举报