We can create a Maven project using our
IDE of choice. Eclipse works with Maven through an optional
m2e plugin, and NetBeans uses Maven as its native build system out of the box. If Maven is installed on a system, you could also choose to create the project from the command line:
mvn archetype:generate -DgroupId=com.packpub.hibernatesearch.chapter1 -DartifactId=chapter1 -DarchetypeArtifactId=maven-archetype-webapp
Time can be saved in either case by using a Maven
archetype, which is basically a template for a given type of project. Here,
maven-archetype-webapp gives us an empty web application, configured for packaging as a WAR file.
artifactId can be anything we wish. They ...