Maven clean install failed
nsridatta opened this issue · comments
Compilation Errors:
cannot find symbol
symbol: static parserBuilder
location: class io.jsonwebtoken.Jwts
/src/main/java/com/programming/techie/springredditclone/security/JwtProvider.java:[18,1]
After analyzing, I found that the below import in the JwtProvider Class is not recognizing
"import static io.jsonwebtoken.Jwts.parserBuilder;"
Although have used your same pom.xml file in my project.
Thanks
Try to change the JSON web token version in the pom.xml file.
The same problem happened to me but when I change my JSON web token dependency version. Then It works fine.
Reference
io.jsonwebtoken jjwt-api 0.11.2io.jsonwebtoken jjwt-impl 0.11.2 runtime
io.jsonwebtoken jjwt-jackson 0.11.2 runtime