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
Parameter analysis:
mvn install:install-file
-DgroupId #包名
-DartifactId #引用名
-Dversion #版本
-Dfile #位置
-Dpackaging #类型