如何在 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

猜你喜欢

转载自www.cnblogs.com/Chendezhou/p/10203192.html