本地jar包安装到maven仓库

发布时间 2023-11-09 16:00:29作者: hello_stone

mvn install:install-file -DgroupId=zac.fc -DartifactId=aeswithjec-20171214 -Dversion=2.0.0 -Dpackaging=jar -Dfile=E:\shiqr\lib\aeswithjec-20171214.jar


-DgroupId=自定义groupId 
-DartifactId=自定义artifactId
-Dversion=自定义版本1.0.0 
-Dpackaging=jar 设置该包的类型,有如下值:pom、jar、war、maven-plugin。但是一般常用的是jar类型
-Dfile=文件路径 设置该jar包文件所在的路径与文件名

window下,一般安装在目录C:\Users\user\.m2\repository下