title: maven shade in multi project setup filtering too much
body: <p>How to properly set up <code>maven-shade</code> plugin in a multi-module maven project setup?</p>
  
  <h3>storyline</h3>
  
  <p>A (<a href="https://github.com/DataSystemsLab/GeoSpark" rel="nofollow noreferrer">https://github.com/DataSystemsLab/GeoSpark</a>) has a dependency on B (<a href="https://github.com/jiayuasu/JTSplus" rel="nofollow noreferrer">https://github.com/jiayuasu/JTSplus</a>) is a fork of C (com.vividsolutions.jts)</p>
  
  <p>Now for some tasks in my project I need to use D (<a href="http://www.geotools.org" rel="nofollow noreferrer">http://www.geotools.org</a>) which depends on another Version of com.vividsolutions.jts.</p>
  
  <p>How can I use both jars in a single project? A simple dependency replacement unfortunately does not work here. Shading should be the solution.</p>
  
  <h3>first attempt - shading the parent pom</h3>
  
  <p>When I try to apply the maven-shadeplugin to the root pom of <a href="https://github.com/DataSystemsLab/GeoSpark/blob/master/pom.xml" rel="nofollow noreferrer">https://github.com/DataSystemsLab/GeoSpark/blob/master/pom.xml</a> as outlined <a href="https://stackoverflow.com/questions/3147512/using-maven-shade-plugin-in-a-multi-module-project-nullpointerexception">Using Maven shade plugin in a multi module project - NullPointerException</a> a null pointer exception occurs</p>
  
  <h3>multi project setup</h3>
  
  <p>When following <a href="https://stackoverflow.com/questions/21021485/how-to-configure-maven-shade-plugin-in-a-multi-module-project">How to configure Maven shade plugin in a multi-module project?</a> to set it up for a multi module build the maven build compiles at least. However, the generated jar is <strong>lacking the actual code of the <code>geospark</code> module</strong>. I can't see where this would be filtered.
  My changes are available <a href="https://github.com/geoHeil/GeoSpark/commit/23d212aeeeacad8b7199da69366d583fc48edcf0" rel="nofollow noreferrer">https://github.com/geoHeil/GeoSpark/commit/23d212aeeeacad8b7199da69366d583fc48edcf0</a></p>
  
  <p>With the main changes being:</p>
  
  <ul>
  <li>introducing a third module <code>FinalModule</code></li>
  <li>shading only enabled there replacing <code>com.vividsolutions.jts</code> with <code>com.vividsolutions.jtsgeospark</code></li>
  </ul>