title: Use maven exec plugin with hyphen in arguments
body: <p>I am trying to perform a npm build from maven, but I am having a problem getting the commandline arguments right.</p>
  
  <p>I am using the following snippet</p>
  
  <pre><code>&lt;execution&gt;
      &lt;id&gt;npm run build (compile)&lt;/id&gt;
      &lt;goals&gt;
          &lt;goal&gt;exec&lt;/goal&gt;
      &lt;/goals&gt;
      &lt;phase&gt;compile&lt;/phase&gt;
      &lt;configuration&gt;
          &lt;executable&gt;npm&lt;/executable&gt;
          &lt;workingDirectory&gt;${my.source.directory}&lt;/workingDirectory&gt;  
          &lt;arguments&gt;
              &lt;argument&gt;run&lt;/argument&gt;
              &lt;argument&gt;build&lt;/argument&gt;
              &lt;argument&gt;--base-href&lt;/argument&gt;
              &lt;argument&gt;/my-base-href/&lt;/argument&gt;
          &lt;/arguments&gt;
      &lt;/configuration&gt;
  &lt;/execution&gt;
  </code></pre>
  
  <p>I have tried several variations of the <code>&lt;argument&gt;</code>'s, but none of them work.</p>
  
  <pre><code>&lt;argument&gt;--base-href&lt;/argument&gt;
  &lt;argument&gt;/my-base-href/&lt;/argument&gt;
  or
  &lt;argument&gt;-base-href&lt;/argument&gt;
  &lt;argument&gt;/my-base-href/&lt;/argument&gt;
  or
  &lt;argument&gt;"--base-href"&lt;/argument&gt;
  &lt;argument&gt;/my-base-href/&lt;/argument&gt;
  or
  &lt;argument&gt;&lt;![CDATA[--base-href]]&gt;&lt;/argument&gt;
  &lt;argument&gt;/my-base-href/&lt;/argument&gt;
  or
  &lt;commandlineArgs&gt;run build --base-href /my-base-href/&lt;/commandlineArgs&gt; (instead of &lt;arguments&gt;)
  
  leads to
  $ npm build "/my-base-href/"
  problem: missing '--base-href'
  </code></pre>
  
  
  
  <pre><code>&lt;argument&gt;"--base-href /my-base-href/"&lt;/argument&gt;
  
  leads to
  $ npm build
  problem: missing '--base-href "/my-base-href/"'
  </code></pre>
  
  
  
  <pre><code>&lt;argument&gt;&amp;hyphen;&amp;hyphen;base-href&lt;/argument&gt;
  &lt;argument&gt;/my-base-href/&lt;/argument&gt;
  
  leads to
  problem: pom error, could not resolve entity named 'hyphen' (same with &amp;dash;)
  </code></pre>
  
  
  
  <pre><code>&lt;argument&gt;\-\-base-href&lt;/argument&gt;
  &lt;argument&gt;/my-base-href/&lt;/argument&gt;
  leads to
  $ ng build "\-\-base-href" "/my-base-href/"
  problem: escape chars ending up in command
  </code></pre>
  
  <p>What is happening here? Why does maven eat the argument starting with <code>--</code> and how can I make it less tasty?</p>
  
  <p>(Tried with windows 8.1, maven 3.3.9 and 3.5.4, exec plugin 1.3.9 and 1.6.0)</p>