title: How to use space in arguments for Maven 2 exec plugin
body: <p>Related Question: <a href="https://stackoverflow.com/questions/1046800/maven-exec-plugin-not-reading-configuration">Maven Exec Plugin not reading configuration</a></p>
  
  <p>In my configuration I need an argument which is a file path. I found a rather "dirty" workaround by surrounding the argument with quotes in the POM ("dirty" because the argument will be passed to the main method with these quotes, they have to be removed again in the code).</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;executable&gt;java&lt;/executable&gt;
      &lt;arguments&gt;
          &lt;argument&gt;"path to file"&lt;/argument&gt;
      &lt;/arguments&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>However I have found no solution for passing the path as a command line argument:</p>
  
  <pre><code>&gt;mvn exec:java -Dexec.args="path to file"
  </code></pre>