I have the same problem sometimes after recreating my Eclipse workspace (which seems to be more and more necessary with every Eclipse/m2eclipse plugin upgrade). But basically importing the template and using only the following save actions work for me:
- Organize imports
- Additional actions
- Remove trailing whitespace on all lines