To do what you're asking, there would need to be an Eclipse plugin to provide the variables to the code template. There are some links to information on this type of plugin in the answers to Can you define your own template variables in eclipse. You could request this as a feature from the m2e project.
A faster solution would be to go in the other direction: instead of having Eclipse pull information from Maven, have Maven write the data. There are some good instructions in Using Maven to output the version number to a text file