In the maven-ear-plugin-1.2 there is a search for dependencies to put in the application.xml
I notice 'ejb', 'jar', 'war', even 'rar'.
I added a section to look for 'sar', and this seems to have worked.
Here's a copy-paste from that section including the section that looks for 'rar'
<j:when test="${dep.type=='rar'}">
<x:element name="module">
<x:element name="connector">${dep.getArtifact()}</x:element>
</x:element>
</j:when>
<j:when test="${dep.type=='sar'}">
<x:element name="module">
<x:element name="connector">${dep.getArtifact()}</x:element>
</x:element>
</j:when>
This seems to work just fine. I look in the JBoss logs and it does in fact deploy as I want it to.
Applied.