作者:可爱竹子16 | 来源:互联网 | 2023-08-28 12:55
IveasimpleprogrambuildinIntelliJandusingmaventhatusesthedependencyio.netty.Iveadde
I've a simple program build in IntelliJ and using maven that uses the dependency io.netty. I've added to my POM file:
我在IntelliJ中构建了一个简单的程序,并使用了使用依赖关系io.netty的maven。我已经添加到我的POM文件中:
io.netty
netty-all
4.1.0.Beta1
In order to compile and get a jar file I usually do:
为了编译并获取一个jar文件,我通常会这样做:
However I noticed that the dependency is not added to the jar, neither existing in the target folder (Or in any of it's sub folders) or added to the resources folder like usually happens.
但是我注意到依赖项没有添加到jar中,既不存在于目标文件夹中(或者在任何子文件夹中),也不会像通常那样添加到资源文件夹中。
In order to have the io.netty library to be added to the jar I have tried:
为了将io.netty库添加到我尝试过的jar中:
I have several other libraries linked including:
我有几个其他图书馆链接,包括:
- mysql-connector-java
- slf4j-simple
- trove4j
Thanks for reading.
谢谢阅读。
2 个解决方案