title: How to add a classpath entry when executing the app with exec plugin
body: <p>One of the components is looking for the persistence.xml using the java.class.path system property. It is desired to keep this file separately from jars in the /conf folder. </p>
  
  <p>When running the app with exec:exec, classpath is formed from the path to the main jar plus path to every dependency. I can't seem to figure out how to add the /conf entry to the classpath. </p>
  
  <p>My command line looks like this:</p>
  
  <p>mvn exec:exec -Dexec.executable="java" -Dexec.args="-classpath %classpath com.testjar.App"</p>
  
  <p>I tried "arguments" parameter but the execution fails if I try to append anything to %classpath.
  I also tried to add a Class-Path entry to the manifest by specifying </p>
  
  <pre><code>&lt;manifestEntries&gt;
    &lt;Class-Path&gt;/conf&lt;/Class-Path&gt;
  &lt;/manifestEntries&gt;
  </code></pre>
  
  <p>in the configuration for maven-jar-plugin, but the entry in the manifest has no effect on the value of java.class.path property.</p>