I've a simple program build in IntelliJ and using maven that uses the dependency io.netty. I've added to my POM file:
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.0.Beta1</version>
</dependency>
In order to compile and get a jar file I usually do:
- Clean
- Compile
- Package
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.
In order to have the io.netty library to be added to the jar I have tried:
- Setting the scope to provided and to compile.
- Re-importing the pom file.
- Deleting io.netty folder in the .m2/repository/ folder.
I have several other libraries linked including:
- mysql-connector-java
- slf4j-simple
- trove4j
Thanks for reading.