In my case I just change its location, like under the messages package and then put it back to previous place src/main/resources, then it worked.