title: How to reference to a shaded jar in maven
body: <p>I have a mavne project installed a shaded jar into local repo.
  in the repo, there are jar and shaded jar :</p>
  
  <p>myjar-1.0-shaded.jar</p>
  
  <p>myjar-1.0.jar</p>
  
  <p>myjar-1.0.pom</p>
  
  <p>In another maven project, I want to add dependency to that shaded jar</p>
  
  <p>how can I do it ?</p>
  
  <p>I tried </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;mygroup&lt;/groupId&gt;
      &lt;artifactId&gt;myjar&lt;/artifactId&gt;
      &lt;version&gt;1.0-shaded&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But it does not work, just can not find the jar.</p>
  
  <p>Of cause  directly use version 1.0 will find that jar but will cause some package conflict.</p>
  
  <p>Not sure whether it is a good idea to have dependency to a shaded jar, but in my case, I have to do it. If anyone can figure out how to solve this, I will be very thankful.</p>