最近在了解视频监控相关sdk,海康威视官方sdk要求自己手工将fas-data-sdk-1.0-SNAPSHOT.jar导入本地maven库,maven配置文件pom.xml配置如下
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.hikvision.demo</groupId> <artifactId>fas-data-sdk-test</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>com.hikvision.fas</groupId> <artifactId>fas-data-sdk</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project>
导入方法在jar相同目录执行以下批处理命令
mvn install:install-file -Dfile=fas-data-sdk-1.0-SNAPSHOT.jar -DgroupId=com.hikvision.fas -DartifactId=fas-data-sdk -Dversion=1.0-SNAPSHOT -Dpackaging=jar