Java EE Maven Archetypes in the Tutorial
Some of the chapters have instructions on how to build an example application using Maven archetypes. Archetypes are templates for generating a particular Maven project. The Tutorial includes several Maven archetypes for generating Java EE projects.
Installing the Tutorial Archetypes
You must install the included Maven archetypes into your local Maven repository before you can create new projects based on the archetypes. You can install the archetypes using NetBeans IDE or Maven.
Installing the Tutorial Archetypes Using NetBeans IDE
Installing the Tutorial Archetypes Using Maven