To build a WAR file, execute in console:

mvn install war:war