title: How to build ExtJS project with Maven
body: <p>I tried to configure <a href="http://www.sencha.com/products/sencha-cmd/" rel="nofollow noreferrer">sencha cmd </a>in Maven using the mojo plugin. Maven configuration looks like below:</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.3.2&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;sencha-compile&lt;/id&gt;
              &lt;phase&gt;compile&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;exec&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                  &lt;!-- Set path to your Sencha Cmd executable--&gt;
                  &lt;executable&gt;${env.SENCHA_CMD}&lt;/executable&gt;
                  &lt;arguments&gt;
                      &lt;argument&gt;-sdk&lt;/argument&gt;
                      &lt;argument&gt;${basedir}/src/main/webapp&lt;/argument&gt;
                      &lt;argument&gt;app&lt;/argument&gt;
                      &lt;argument&gt;build&lt;/argument&gt;
                      &lt;argument&gt;--clean&lt;/argument&gt;
                      &lt;argument&gt;--environment&lt;/argument&gt;
                      &lt;argument&gt;${sencha.env}&lt;/argument&gt;
                      &lt;argument&gt;--destination&lt;/argument&gt;
                      &lt;argument&gt;${basedir}/src/main/webapp/build&lt;/argument&gt;
                  &lt;/arguments&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>My project structure looks:<img src="https://i.stack.imgur.com/2sLiY.png" alt="enter image description here"></p>
  
  <p>I set environment variable <code>SENCHA_CMD=C:\Users\yura\bin\Sencha\Cmd\5.1.0.26</code>(in my case I'm using Windows OS).
  When i try to execute the <code>mvn:compile</code> command i get the error:</p>
  
  <blockquote>
    <p>Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (sencha-compile) on project vehicle-store: Command execution failed. Cannot run program "C:\Users\yura\bin\Sencha\Cmd\5.1.0.26" (in directory "C:\Users\yura\Dropbox\Programming\Java\Projects\IntelliJ\VehicleStore"): CreateProcess error=5, Îòêàçàíî â äîñòóïå -> [Help 1]
        org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (sencha-compile) on project vehicle-store: Command execution failed.
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
            at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
        Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed.
            at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:308)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
            ... 20 more
        Caused by: java.io.IOException: Cannot run program "C:\Users\yura\bin\Sencha\Cmd\5.1.0.26" (in directory "C:\Users\yura\Dropbox\Programming\Java\Projects\IntelliJ\VehicleStore"): CreateProcess error=5, Îòêàçàíî â äîñòóïå
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
            at java.lang.Runtime.exec(Runtime.java:617)
            at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
            at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:277)
            at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:334)
            at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:164)
            at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:746)
            at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:292)
            ... 22 more
        Caused by: java.io.IOException: CreateProcess error=5, Îòêàçàíî â äîñòóïå
            at java.lang.ProcessImpl.create(Native Method)
            at java.lang.ProcessImpl.(ProcessImpl.java:385)
            at java.lang.ProcessImpl.start(ProcessImpl.java:136)
            at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
            ... 29 more</p>
  </blockquote>
  
  <p>How can I fix the error?</p>