如何在 Maven 工程中引入其他jar包 并生效?(以 Netty 为例)

1.到 Maven 官网  查找 相关 框架

https://mvnrepository.com/artifact/io.netty/netty-all/4.1.32.Final

2.把相关 Xml体 复制到  Maven 的 pom.xml 中 

 

 

<!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.32.Final</version>
</dependency>

 

3.右击 工程 点 Maven 选择 Reimport

posted on 2018-12-31 20:09  陈德洲  阅读(447)  评论(0编辑  收藏  举报

导航