Creating a WAR

Creating a WAR file from the majas-tutorial web project, is in fact very easy. Actually we have already done that! While creating an Eclipse project we first executed the Maven install plugin. This install plugin also builds your project for you, and installs it into your local repository.

So, building a WAR file, is executing the Maven install plugin, from the majas-tutorial directory:

$ cd majas-tutorial
$ mvn install

 

Under the majas-tutorial/target/ directory, you will find your WAR file.