How can I create a war file of my project in NetBeans?
Simplest way is to Check the Output - Build tab: It would display the location of war file. It will have something like:
Installing D:\Project\target\Tool.war to C:\Users\myname.m2\repository\com\tool\1.0\Tool-1.0.war