title: exec-maven-plugin exec:java failing: Cannot assign configuration values to array of type java.lang.String
body: <p>When executing <code>mvn exec:java</code> it fails to correctly parse the configuration arguments, throwing the following error:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on
    project autotest-programmes: Unable to parse configuration of mojo
    org.codehaus.mojo:exec-maven-plugin:1.2.1:java: Cannot assign
    configuration values to array of type java.lang.String: [-classpath,
    Classpath {}, --glue, com.company.test.cucumber, --format, pretty,
    --format, html:C:\workspace\autotest\target] -> [Help 1]</p>
  </blockquote>
  
  <p>This is the plugin configuration used (using Apache Maven 3.0.3):</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.2.1&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;goals&gt;
                  &lt;goal&gt;java&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;includeProjectDependencies&gt;false&lt;/includeProjectDependencies&gt;
          &lt;includePluginDependencies&gt;true&lt;/includePluginDependencies&gt;
          &lt;executableDependency&gt;
              &lt;groupId&gt;info.cukes&lt;/groupId&gt;
              &lt;artifactId&gt;cucumber-core&lt;/artifactId&gt;
          &lt;/executableDependency&gt;
          &lt;mainClass&gt;cucumber.cli.Main&lt;/mainClass&gt;
          &lt;commandlineArgs&gt;-Dfile.encoding=UTF-8&lt;/commandlineArgs&gt;
          &lt;arguments&gt;
              &lt;argument&gt;-classpath&lt;/argument&gt;
              &lt;classpath/&gt;
              &lt;argument&gt;--glue&lt;/argument&gt;
              &lt;argument&gt;com.company.test.cucumber&lt;/argument&gt;
              &lt;argument&gt;--format&lt;/argument&gt;
              &lt;argument&gt;pretty&lt;/argument&gt;
              &lt;argument&gt;--format&lt;/argument&gt;
              &lt;argument&gt;html:${project.basedir}\target&lt;/argument&gt;
          &lt;/arguments&gt;
      &lt;/configuration&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;info.cukes&lt;/groupId&gt;
              &lt;artifactId&gt;cucumber-core&lt;/artifactId&gt;
              &lt;version&gt;1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/plugin&gt;
  </code></pre>