I'm currently migrating some Java project to Maven structure and I ran into a problem. Old EAR project contains jboss-deployment-structure.xml, so I've moved it to a Maven project under <EAR-ROOT>/src/main/application/META-INF. When I build a project, descriptor is placed correctly in EAR file, but since it's Maven project, I'm thinking about generating jboss-deployment-structure.xml using Maven, since it contains many references to jar libraries. Now when I e.g. change some Java library version in pom.xml, I also have to manually change it in jboss-deployment-structure.xml.
Part of my jboss-deployment-structure.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<!-- Make sub deployments isolated by default, so they cannot see each others
classes without a Class-Path entry -->
<ear-subdeployments-isolated>true</ear-subdeployments-isolated>
<deployment>
<resources>
<resource-root path="lib/apache/commons-lang3-3.3.2.jar" />
<resource-root path="lib/joda/joda-time-2.0.jar" />
</resources>
</deployment>
</jboss-deployment-structure>
So my question - Is it possible to generate jboss-deployment-structure.xml using Maven? I've already searched for some appropriate plugin, but I couldn't find any. Can descriptor be generated in any other way?
Thanks in advance.