美文网首页
将github上的项目打包成本地maven包

将github上的项目打包成本地maven包

作者: chuan_bai | 来源:发表于2020-09-23 08:28 被阅读0次

1.从github上clone一个项目

2.使用命令进入项目路径 使用以下 命令打包

mvn clean package -DSkipTests

3.安装jar包,到maven仓库

mvn install

或者可以指定groupId,artifactId

mvn install:install-file -Dfile=jar包完整路径 -DgroupId=原项目的groupid -DartifactId=原项目的artifactId -Dversion=1.0 -Dpackaging=jar

相关文章

网友评论

      本文标题:将github上的项目打包成本地maven包

      本文链接:https://www.haomeiwen.com/subject/fcviyktx.html