参考:使用Maven命令将jar包导入本地仓库_Jack_zhu_zhu的博客-CSDN博客
需要在项目的pom.xml路径打开cmd 使用命令符插入 否则会报错
参考:
mvn install:install-file -Dfile=C:\Users\LENOVO\Desktop\e-iceblue\spire.doc.free\3.9.0\spire.doc.free-3.9.0.jar -DgroupId=e-iceblue -DartifactId=spire.doc.free -Dversion=3.9.0 -Dpackaging=jar
模板
mvn install:install-file -Dfile=** -DgroupId=** -DartifactId=** -Dversion=** -Dpackaging=jar
说明
各命令代表内容:
-Dfile:jar包所在磁盘路径
-DgroupId:pom文件中的groupId
-DartifactId:pom文件中的artifactId
-Dversion:pom文件中的version
-Dpackaging:打包方式