Whenever I need to create a new web application in Java, I use the barebone web application Maven archetype that comes with NetBeans. Then, I proceed to add dependencies to libraries and frameworks that the application requires, followed by configuration files for logging and such. I test the setup by creating a "Hello world!" like structure and deploying it to an application server.
Although most of the time this process takes only a couple of minutes, sometimes I forget how to connect different bits and end up reading documentation for half an hour. To avoid wasting time on things I've done many times, I created a Maven archetype with the following setup: JSF 2.0, CDI, PrimeFaces, SLF4J and Logback. The archetype is deploy-ready, containing "Hello world!" examples of the essentials, and can be pulled from GitHub.