When packaging web applications using the included build scripts, you’ll notice that the scripts package resources as described here:
All JSP pages are placed at the top level of the WAR file.
The TLD files, the faces-config.xml file, and the web.xml file are packaged in the WEB-INF directory.
All packages are stored in the WEB-INF/classes/ directory.
All JAR files are packaged in the WEB-INF/lib/ directory.
When packaging your own applications, you can use NetBeans IDE or you can use the build scripts included with the tutorial examples, as explained throughout the preceding chapters. You can modify the build scripts to fit your situation. However, it is recommended that you continue to package your WAR files as described in this section because this technique complies with commonly-accepted practice for packaging web applications.