问题
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?
回答1:
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.
回答2:
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
来源:https://stackoverflow.com/questions/20737596/how-to-create-war-file-in-eclipse