Loading

本地jar包打到Maven本地仓库

好久没打jar包到maven本地仓库都忘了

在maven仓库cmd进入

D:\maven\repository\io\netty\netty-bom>cmd

输入打包命令

D:\maven\repository\io\netty\netty-bom>
mvn install:install-file  
-DgroupId=io.netty       //设置项目代码的包名
-DartifactId=netty-bom   //设置项目名或模块名
-Dversion=4.1.49.Final   //设置版本号
-Dpackaging=jar          //设置什么类型的文件(jar包)
-Dfile=D:\maven\repository\io\netty\netty-bom\netty-all-4.1.39.Final.jar

显示BUILD SUCCESS 就打包成功

打开位置

打开pom文件

  <groupId>io.netty</groupId>
  <artifactId>netty-bom</artifactId>
  <version>4.1.49.Final</version>

可以粘贴到idea上

<dependency>
     <groupId>io.netty</groupId>
     <artifactId>netty-bom</artifactId>
     <version>4.1.49.Final</version>
</dependency>

posted @ 2021-01-05 16:41  Rzk  阅读(334)  评论(0编辑  收藏  举报