问题描述:
在对接海康设备时,需要使用两个jar包,其中第一个可以在maven中找到,使用pom直接引入,但第二个没有被maven仓库管理,现在需要将examples对应的jar包放到maven私服中
<!--海康设备SDK用-->
<dependency>
<groupId>com.sun.jna</groupId>
<artifactId>jna</artifactId>
<version>3.0.9</version>
</dependency>
<!--海康设备SDK用-->
<dependency>
<groupId>com.sun.jna</groupId>
<artifactId>examples</artifactId>
<version>3.0.9</version>
</dependency>
办法
使用命令:
mvn install:install-file -Dfile=D:\maven\jw_maven\repository\com\sun\jna\examples\3.0.9\examples-3.0.9.jar -DgroupId=com.sun.jna -DartifactId=examples -Dversion=3.0.9 -Dpackaging=jar -DgeneratePom=true
请参照: