好久没打jar包到maven本地仓库都忘了
在maven仓库cmd进入
D:maven epositoryio etty etty-bom>cmd
输入打包命令
D:maven
epositoryio
etty
etty-bom>
mvn install:install-file
-DgroupId=io.netty //设置项目代码的包名
-DartifactId=netty-bom //设置项目名或模块名
-Dversion=4.1.49.Final //设置版本号
-Dpackaging=jar //设置什么类型的文件(jar包)
-Dfile=D:maven
epositoryio
etty
etty-bom
etty-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>