I have a web dynamic project on eclipse running on Tomcat. I need to add the dependency of the JWT library on Maven dependencies. So I configured my project to Maven, and the I added the dependency on the pom.xml.
Now eclipse doesn't resolve my dependency, for example if I import a package of JWT there is a red line that highlights my import.
But there is another problem: all the library that I imported like hibernate, apache-common (that I previously copied in WEB-Lib) that before worked, now are unresolved.
How may I face this problem? This is the first time using Maven, so if I'm wrong in something, please tell me.
Thanks in advice.
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.6.0</version>
</dependency>
This dependency worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With