In most default configurations netbeans, does not create a war file in the dist folder where you would expect it. By default it often just copies the exploded war file into the jboss or glassfish deploy folder.
In order to create a war file:
- Right-Click your project in the explorer
- Select Properties
- Go to Build and Run
- From the ‘Build Project’ drop-down select ‘archive’
- Hit OK
- Right Click on your project
- Select Build (this will create the war)
Go to your projects//dist folder and you will see your war file
View Comments (1)
Thank you very much!
In Neatbeans 7.1:
1) Right click on your project name in the Explorer
2) Select Properties
3) In the Build | Packaging section, check "Compress War file" option.
P.C.