Creating a Maven project

m2eclipse makes the creation of Maven projects simple. Maven projects can be created in the following two ways:

  • Using an archetype
  • Without using an archetype

Now, we will discuss how to go about creating projects using these methods.

Using an archetype

An archetype is a plugin that allows a user to create Maven projects using a defined template known as archetype. There are different archetypes for different types of projects.

Archetypes are primarily available to create the following:

  • Maven plugins
  • Simple web applications
  • Simple projects

We will now see how to create a simple Hello World! project using an archetype:

  1. Navigate to File | New and click on Other. The project wizard appears and expands the Maven folder. Select Maven Project ...

Get Maven for Eclipse now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.