This is just an dependency issue. Some dependency is corrupted which is causing the same. Delete the repository folder inside the .m2 and build the project again which will solve the issue