title: Building both war and ear files for same project using maven
body: <p><br>
  In my project i have both web related stuff(jsps, controllers, ..) and EJB beans.<br>
  Now i need to build war file with web related stuff and deploy that into tomcat and<br>
  need to build ear file for EJB's and deploy that into jboss using maven.  </p>
  
  <p>Can anyone suggest me a solution to modify the pom.xml accordingly.  </p>
  
  <p>Thank you,<br>
  Pavan</p>