欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

maven命令安装本地jar包到本地仓库和远程仓库 博客分类: Maven手记 maven

程序员文章站 2024-03-18 22:20:28
...

安装命令:

mvn install:install-file -Dfile=xxx-common-3.0.jar -DgroupId=com.xxx -DartifactId=xxx-common -Dversion=3.0 -Dpackaging=jar

 

命令解释:

 

mvn install:install-file   安装到本地仓库的maven命令

-Dfile=jar包的位置   

-DgroupId=上面的groupId,自定义   

-DartifactId=上面的artifactId,自定义

-Dversion=上面的version,自定义 

-Dpackaging=jar

相关标签: maven