I am using the Maven ear plugin to create an EAR 7 EAR file for my project for me, and the components will need to use a data source. As I understand it, the portable way to do this is to use the <resource-ref> element in my EAR application descriptor. Can I force Maven to generate an EAR with an application descriptor using a Datasource reference and still save the rest of the automatically generated descriptor? Or do I need to substitute my own application.xml and save it myself?
source
share