How to add vaadin instead of thymeleaf in existing project in intellij?

I have few projects with vaadin created by spring.io and everything works. Now I want to add vaadin to existing project, where I used thymeleaf. When I added vaadin maven dependencies and deleted thymeleaf dependency my classes see vaadin bibliotecs but it not compile. Intellij says that not found resources. I need to add sth more than dependiencies?