第三方jar包在开发工具中引入后编译没问题, 启动调试包括打包时会提示找不到jar包的错误.需要上传到maven仓库中,并在pom文件内引入.
maven命令:
安装指定文件到本地仓库命令:mvn install:install-file -DgroupId=<groupId> : 设置上传到仓库的包名 -DartifactId=<artifactId> : 设置该包所属的模块名 -Dversion=1.0.0 : 设置该包的版本号 -Dpackaging=jar : 设置该包的类型(很显然jar包) -Dfile=<myfile.jar> : 设置该jar包文件所在的路径与文件名
上传jar包 win+r cmd打开命令行输入以下命令
mvn install:install-file -DgroupId=com.zebra -DartifactId=ZSDK_API -Dversion=v2.12.3782 -Dpackaging=jar -Dfile=E:perslibSDK_API.jar mvn install:install-file -DgroupId=com.zebra -DartifactId=ZSDK_CARD_API -Dversion=v2.12.3782 -Dpackaging=jar -Dfile=E:perslibSDK_CARD_API.jar
出现以下success说明成功了.
到maven仓库查看:
二.在pom文件中引入jar包
<dependency> <groupId>com.zebra</groupId> <artifactId>ZSDK_API</artifactId> <version>v2.12.3782</version> </dependency> <dependency> <groupId>com.zebra</groupId> <artifactId>ZSDK_CARD_API</artifactId> <version>v2.12.3782</version> </dependency>
注意:
jar包所在路径不要带中文,不要带中文,不要带中文!
密码学学习笔记
[hdu3695]Computer Virus on Planet Pandora(AC自动机)
[hdu1277]全文检索(AC自动机)
[hdu3065]病毒侵袭持续中(AC自动机)
[hdu2896]病毒侵袭(AC自动机)
lintcode-84-落单的数 III
lintcode-83-落单的数 II
lintcode-79-最长公共子串
lintcode-78-最长公共前缀