title: resource-ref in Maven-generated application descriptor
body: <p>I'm using Maven's <a href="http://maven.apache.org/plugins/maven-ear-plugin" rel="nofollow">ear plugin</a> to generate a Java EE 7 EAR file of my project for me, and the components will need to use a Datasource. As I understand it, the portable way to do this is to use a &lt;resource-ref&gt; element in my EAR's application descriptor. Can I get Maven to generate an EAR with an app descriptor with the Datasource reference, and still keep the rest of the auto-generated descriptor? Or do I have to substitute my own application.xml, and maintain it myself?</p>