title: Cannot run program CreateProcess error=206, The filename or extension is too long
body: <p>I get the titled error when I use jvmarguments in the pom file. I'm using mvnw command with the below plugin to enable debugging. If I remove the jvm argument, it works. But I want to enable remote debugging with the mvnw command</p>
  
  <p><strong>Code Snippet:</strong></p>
  
  <pre><code>&lt;plugin&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;repackage&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
          &lt;configuration&gt;
              &lt;mainClass&gt;${start-class}&lt;/mainClass&gt;
              &lt;executable&gt;true&lt;/executable&gt;
              &lt;fork&gt;true&lt;/fork&gt;
              &lt;jvmArguments&gt;-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005&lt;/jvmArguments&gt; 
          &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>*[ERROR] Failed to execute goal
    org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:run
    (default-cli) on project dxcgateway: Could not exec java: Cannot run
    program "C:\Program Files\Java\jdk1.8.0_202\jre\bin\java.exe":
    CreateProcess error=206, The filename or extension is too long ->
    [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException:
    Failed to execute goal
    org.springframework.boot:spring-boot-maven-plugin:2.0.7.RELEASE:run
    (default-cli) on project dxcg ateway: Could not exec java</p>
    
    <p>Caused by: java.io.IOException: Cannot run program "C:\Program
    Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206,
    The filename or extension is too long
        at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)
        at org.springframework.boot.loader.tools.RunProcess.run (RunProcess.java:77)</p>
    
    <p>Caused by: java.io.IOException: Cannot run program "C:\Program
    Files\Java\jdk1.8.0_202\jre\bin\java.exe": CreateProcess error=206,
    The filename or extension is too long
        at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)
        at org.springframework.boot.loader.tools.RunProcess.run (RunProcess.java:77)*</p>
  </blockquote>