步骤
- 将需要的jar包下载至本地。
- 使用IDEA的maven工具进行打包。
- 输入命令:
mvn install:install-file -Dfile=jar包的本地真实地址 -DgroupId=pom.xml中groupId -DartifactId=pom.xml中artifactId -Dversion=pom.xml中版本号 -Dpackaging=jar或war,包的后缀名
- 例如:
mvn install:install-file -Dfile=D:\CH-HCNetSDKV6.1.6.45_build20210302_win64\examples.jar -DgroupId=com.sun.examples-local -DartifactId=examples-local -Dversion=3.0.9 -Dpackaging=jar
- 输入命令:
- 在pom.xml中导入maven 即可。