Import your own jar package into the project through the maven command

  1. First put the jar package in a specific location and then execute the maven command.

mvn install:install-file -DgroupId=org.hik -DartifactId=hik -Dversion=0.0.1 -Dfile=E:\maven\apache-maven-3.6.3\hik\examples.jar -Dpackaging=jar
  1. Parameter analysis:

mvn install:install-file
     -DgroupId       #包名
     -DartifactId    #引用名
     -Dversion       #版本
     -Dfile          #位置
     -Dpackaging     #类型

Guess you like

Origin blog.csdn.net/zjb1697922408/article/details/129751185