title: How to Build a maven project using script file?
body: <p>I have created a maven project in STS.I completed the development and testing code for my project.If now I want to run or build this project, then I have to do the following</p>
  
  <pre><code>      Right click on the project--&gt;Run as--&gt;Run on Server   (or)
        Right click on the project--&gt;Run as--&gt;Maven Build
  </code></pre>
  
  <p>If I want to run the test code then</p>
  
  <pre><code>      Right click on the class file--&gt;Run as--&gt;Run JUnit 
  </code></pre>
  
  <p>But I want to create a text file I mean script file to run all these commands when I run this script file from the cmd prompt. I have found out on a web site that I should create a PowerShell file, So I don't cognize how to compose a script file like this, is there any example file for it ? </p>
  
  <p>Please, anybody can help me </p>