title: maven rpm plugin with multiple mappings
body: <p>I am building an rpm package that includes a 3PP software plus other configuration files. When I don't include the configuration files, the rpm builds properly but when I include the configuration files, the rpm build but installation of the 3PP software in the lab fails.
  Here is a snapshot of my pom.xml:</p>
  
  <pre><code> &lt;properties&gt;
      &lt;rpm-root&gt;/opt&lt;/rpm-root&gt;
      &lt;comp-name&gt;mycompany&lt;/comp-name&gt;
      &lt;install-path&gt;mgmt&lt;/install-path&gt;
  &lt;/properties&gt;
  &lt;build&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
       &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
       &lt;artifactId&gt;rpm-maven-plugin&lt;/artifactId&gt;
       &lt;configuration&gt;
            &lt;mappings&gt;
              &lt;mapping&gt;
                 &lt;directory&gt;${rpm-root}&lt;/directory&gt;
                 &lt;configuration&gt;true&lt;/configuration&gt;
                 &lt;sources&gt;
                     &lt;source&gt;
                        &lt;location&gt;src/main/binary&lt;/location&gt;
                     &lt;/source&gt;
                 &lt;/sources&gt;
              &lt;/mapping&gt;
              &lt;mapping&gt;
                &lt;directory&gt;${rpm-root}/${comp-name}/${install-path}/config&lt;/directory&gt;
                &lt;directoryIncluded&gt;false&lt;/directoryIncluded&gt;
                &lt;configuration&gt;true&lt;/configuration&gt;
                &lt;sources&gt;
                    &lt;source&gt;
                       &lt;location&gt;src/main/config&lt;/location&gt;
                    &lt;/source&gt;
                &lt;/sources&gt;
             &lt;/mapping&gt;
       &lt;/mappings&gt;
     &lt;/configuration&gt;
   &lt;/plugin&gt;
  </code></pre>
  
  <p>in src/main/binary this is what I have:
  ls -ltr src/main//binary/opendj</p>
  
  <p>opendj is the 3PP software I am packaing.</p>
  
  <p>With the above pom.xml this is what I get:</p>
  
  <pre><code>/opt/mycompany/mgmt/config/mgmt.properties
  /opt/opendj/Legal/license_to_accept.txt
  /opt/opendj/QuickSetup.app/Contents/Info.plist
  </code></pre>
  
  <p>and in this case the installation of the 3PP (opendj) fails</p>
  
  <p>If I don't include the configuration files in the rpm plugin, this is what I get:</p>
  
  <pre><code>**/opt
  /opt/opendj**
  /opt/opendj/Legal
  /opt/opendj/Legal/license_to_accept.txt
  /opt/opendj/QuickSetup.app
  /opt/opendj/QuickSetup.app/Contents
  /opt/opendj/QuickSetup.app/Contents/Info.plist
  </code></pre>
  
  <p>You can see that in this case, the package creates the directories /opt and /opt/opednj etc.. 
  In this case the installation of the 3PP (opendj) succeeds.</p>
  
  <p>Thanks!</p>