title: How to replace file inside JAR which is inside RAR in Maven EAR build
body: <p>I'm trying to build an EAR that consist of some resource adapter (let's call it resource.rar) and some other JARs.
  resource.rar contains several JARs:
   - resource-api.jar
   - resource-impl.jar
   - resource-ejb.jar
   - others...</p>
  
  <p>What I need to do is to replace persistence.xml that is in the following path:
  <strong>my_application.ear/resource.rar/resource-ejb.jar/META-INF/persistence.xml</strong>
  with some filered resource.
  My goal is to change properties like:
  <br><code>   property name="hibernate.hbm2ddl.auto"</code><br><code>
           property name="hibernate.dialect" </code></p>
  
  <p>maven-ear-plugin allows to unpack artifacts but as far as I know it is possible only for one level structure.</p>