title: How to set manifest class-path in maven shade plugin?
body: <p>I'm using shade plugin and everything works fine except for being able to set Class-Path for manifest via</p>
  
  <pre><code> &lt;transformer 
          implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
          &lt;mainClass&gt;com.generic.App&lt;/mainClass&gt;  
          &lt;classPath&gt;. ./config&lt;/classPath&gt;                           
      &lt;/transformer&gt;
  </code></pre>
  
  <p>I get </p>
  
  <pre><code> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.1:shade (default)              on project SpringThing: Unable to parse configuration of mojo org.apache.maven.plugins:maven-shade-plugin:2.1:shade for parameter transformer: Cannot find setter, adder nor field in org.apache.maven.plugins.shade.resource.ManifestResourceTransformer for 'classPath' -&gt; [Help 1]
  </code></pre>
  
  <p>Looking at the doc </p>
  
  <p><a href="http://maven.apache.org/plugins/maven-shade-plugin/apidocs/org/apache/maven/plugins/shade/resource/ManifestResourceTransformer.html">http://maven.apache.org/plugins/maven-shade-plugin/apidocs/org/apache/maven/plugins/shade/resource/ManifestResourceTransformer.html</a></p>
  
  <p>Should be able to parse any valid manifest resource? I tried clss-path Class-Path ClassPath nothing works...</p>
  
  <p>I need the classpath to set location of external app property files.</p>
  
  <p>I'm using shade plugin instead of assembly because of a well known problem:</p>
  
  <p><a href="http://blog.idm.fr/2009/09/maven-assembly-plugin-and-spring-namespace-handlers.html">http://blog.idm.fr/2009/09/maven-assembly-plugin-and-spring-namespace-handlers.html</a></p>
  
  <p>I can do this in assembly pretty easily by the way: (and it works)</p>
  
  <pre><code> &lt;manifestEntries&gt;
    &lt;Class-Path&gt;. ./config&lt;/Class-Path&gt;
   &lt;/manifestEntries&gt;
  </code></pre>
  
  <p>I can't use oneJar plugin via maven because you can't set manifest entries either. (I don't think?)</p>
  
  <p>Any ideas?</p>