The solution works for me is, go to each pom file of submodules, right click, Run Maven -> Reimport (and this could take a while).
Run Maven -> Reimport