title: Execute failed: java.io.IOException: Cannot run program "mkdir"
body: <p>I am trying to build maven project.I am getting following error. The complete stack trace is below</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (rpmbuild) on project ers: An Ant BuildException has occured: The following error occurred while executing this line:
  [ERROR] C:\Users\XYZ-PC\git\ers\target\rpm-spec-template\rpmbuild.xml:4: Execute failed: java.io.IOException: Cannot run program "mkdir": CreateProcess error=2, The system cannot find the file specified
  [ERROR] around Ant part ...&lt;ant antfile="C:\Users\XYZ-PC\git\ers\target/rpm-spec-template/rpmbuild.xml"/&gt;... @ 4:93 in C:\Users\XYZ-PC\git\ers\target\antrun\build-main.xml
  [ERROR] -&gt; [Help 1]
  </code></pre>
  
  <p>I have tried searching out this problem but all I found is that may be its JRE problem, I have checked and made sure that my source is using JDK not JRE.</p>
  
  <p>I am stuck and any help would be appreciated.</p>