I've seen this happen and another approach to take which is similar to m0skit0 solution (if you are using Eclipse) is to right click
on the project, select maven
, select update project
, make sure clean projects
and refresh workspace
are checked, and hit ok
.