For me: force updating Maven dependencies solved the problem. Maven was just installed, and the error didn't indicate anything related to dependencies. Steps to solve the problem on IntelliJ:
Open pom.xml
Click maven refresh button
A message will appear that there is a problem with dependencies, do you want to force update them? click yes or similar button.