title: maven shaded jar: change output location
body: <p>I'm having difficulty using the Maven Shade Plugin because I would like to have my shaded jar be installed to the same folder as the Parent pom (instead of the local <code>src/target</code> directory).</p>
  
  <p>The layout:
  maven_project</p>
  
  <pre><code>guide/
     parent_pom.xml
  projA/
     pom.xml
  projB/
     pom.xml
     /target
        original-projB-0.0.3.jar
        projB-0.0.3.jar (shaded jar) 
  </code></pre>
  
  <p>I have to export the project and to make it easier for others to run the executable jar I want to relocate the shaded jar to the <code>guide</code> folder.</p>
  
  <p>Unfortunately, I tried using</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;outputDirectory&gt;/home/name/Desktop/maven_project/guide/&lt;/outputDirectory&gt;    
  </code></pre>
  
  <p>but this only moved the original-jar to the directory.</p>
  
  <p><strong>Question</strong>: Any ideas on how to move the shaded jar there instead (and even delete the original jar in the process)?</p>