title: Including another xml file in pom.xml
body: <p>I am trying to include xml file in <strong><code>pom.xml (maven)</code></strong> . 
      My <strong><code>pom.xml</code></strong> looks somehting likes this </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project&gt;
  &lt;!-- &lt;xi:include href="minify.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/&gt;
   --&gt;  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;myproject&lt;/groupId&gt;
    &lt;artifactId&gt;myproject&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;description&gt;&lt;/description&gt;
    &lt;build&gt;
      &lt;plugins&gt;
  
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.5&lt;/source&gt;
            &lt;target&gt;1.5&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;!-- include plugin tag from other xml file --&gt;
  // I would like maintain one seperate xml file to hold all plugin tags (to reduce pom.xml //file content.
  &lt;/plugins&gt;
  </code></pre>
  
  <p>I am using <strong><code>"com.samaxes.maven"</code></strong> to <strong><code>minify css and js files</code></strong> . 
  But I have kept my css and js files in many seperate folders . I need to include this below tag repeatedly </p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.samaxes.maven&lt;/groupId&gt;
      &lt;artifactId&gt;minify-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.7.4&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;default-minify-1&lt;/id&gt;
              &lt;configuration&gt;
                     &lt;charset&gt;utf-8&lt;/charset&gt;
                     &lt;jsEngine&gt;CLOSURE&lt;/jsEngine&gt;
                     &lt;skipMerge&gt;true&lt;/skipMerge&gt;
                     &lt;nosuffix&gt;true&lt;/nosuffix&gt;
                    &lt;!--   &lt;skipMinify&gt;true&lt;/skipMinify&gt;   --&gt;   &lt;!--skips already minfied css fiels --&gt;
  
                      &lt;cssSourceDir&gt;inc/one/css&lt;/cssSourceDir&gt;
                     &lt;cssTargetDir&gt;inc/one/css/mini&lt;/cssTargetDir&gt;
                     &lt;cssSourceIncludes&gt;
                        &lt;cssSourceInclude&gt;*.css&lt;/cssSourceInclude&gt;
                     &lt;/cssSourceIncludes&gt;
  
                      &lt;jsSourceDir&gt;proj/platform/common/js/&lt;/jsSourceDir&gt;
                     &lt;jsTargetDir&gt;proj/platform/common/js/mini&lt;/jsTargetDir&gt;
                     &lt;jsSourceIncludes&gt;
                       &lt;jsSourceInclude&gt;*.js&lt;/jsSourceInclude&gt;
                     &lt;/jsSourceIncludes&gt;
                     &lt;closureCreateSourceMap&gt;true&lt;/closureCreateSourceMap&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;minify&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
   &lt;/plugin&gt;
  </code></pre>
  
  <p>I googled possible way to include multiple directories ,then I decided to include all directories by repeating above snippet code . But later though to separate all mifiy include to other xml file . I am looking some way to include xml file inside  tag . 
  Some one please help me out. </p>