title: how to compile and build WAR before creating an EAR
body: <p>Using Maven I am first running the WAR build to generate the WAR file and store in local repository.
  I then run the maven build to create the EAR file.</p>
  
  <p>So everytime I want to deploy and test I have to do 2 builds from eclipse.
  I am using maven , eclipse .</p>
  
  <p>This project is in early stages of development so going the Jenkins route is premature. 
  is there a way that when I run the EAR build - it will FIRST build the war rather than use the one in local repository ?</p>
  
  <p>If this is possible I save some time by a single click I get two builds done rather than do them manually.</p>