本地jar包导入本地maven仓库
-Dfile=需要导入maven仓库的本地jar的位置
-DgroupId= 坐标groupId
-DartifactId= 坐标artifactId
-Dversion=版本号
-Dpackaging=打包类型
前提:机器需要安装maven,并配置maven的环境变量,执行cmd 黑窗口执行下面的命令:
mvn install:install-file -Dfile=D:\Ecss\CES\CES_JAVA\lib\kaptcha-2.3.2.jar -DgroupId=com.google -DartifactId=kaptcha -Dversion=2.3.2 -Dpackaging=jar
导入后用到这个jar的项目,在pom文件中添加依赖:
例如:
<dependency>
<groupId>com.google</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3.2</version>
</dependency>