1. 程式人生 > >如何在 Maven 工程中引入其他jar包 並生效?(以 Netty 為例)

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