In my case of a similar problem, instead of using Andrew’s suggestion for the fix, it worked simply after I introduced
Once this structure is in place, the error goes away.
What a mess. I don’t remember where I found this but I had to add the following to get M2Eclipse to be happy. Even more sad is that it isn’t exactly easy to understand why this tag is needed.
… various plugins …
There were a number of other issues with the M2Eclipse plug-in that simply didn’t work with Spring Data. In the end I disabled M2Eclipse in favor of the Apache Eclipse plug-in.