Thanks for all replies, i solved it by downloading manually the .jar file from the following link and overwrite the existing jar downloaded by maven. (i don't know why it started working after manual download, but after all, its working)
http://commons.apache.org/proper/commons-lang/download_lang.cgi
Answer from Shahzeb Khan on Stack OverflowThanks for all replies, i solved it by downloading manually the .jar file from the following link and overwrite the existing jar downloaded by maven. (i don't know why it started working after manual download, but after all, its working)
http://commons.apache.org/proper/commons-lang/download_lang.cgi
If you sure that jar file includes StringEscapeUtils in the classpath you should clean the project.
The class was moved from package
org.apache.commons.
lang3
to
org.apache.commons.text
You can replace the deprecated library easily:
In your build.gradle:
implementation 'org.apache.commons:commons-text:1.11.0'
And in your class using StringEscapeUtils make sure you import the correct class:
import org.apache.commons.text.StringEscapeUtils;
1.11.0 is currently the newest version (last checked February 20th 2024) but you can check the versions at maven: https://mvnrepository.com/artifact/org.apache.commons/commons-text
Per the deprecation listing, it was moved to a new project -- commons-text