If your project is maven-based project then : 1)Right click on your project. 2) Choose Run-as 3) Select Maven install 4) Check the console for Build failure or success .
Your WAR file of a project is generated into the target folder.
Question
I have maven based project. I want to create WAR file. I have eclipse (Version: Helios Service Release 2). *What are the steps to create WAR file? *Where to give WAR name?
Solution
If your project is maven-based project then : 1)Right click on your project. 2) Choose Run-as 3) Select Maven install 4) Check the console for Build failure or success .
Your WAR file of a project is generated into the target folder.
OTHER TIPS
Right click your project name in the project explorer panel. On the popup menu, go to Export, you will see the War file menu item