so the need is to add resource-env-ref entries in a maven project who's application.xml is generated by maven-ear-plugin.
Checked with the source of the plugin and there's nothing even remotely close to resource-env-ref. And it's difficult to believe nobody had this need until now.
The only alternative I see, for the moment, is to hand written the application.xml and use the resource plugin to keep the versions in change.