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:
- Navigate to File | New and click on Other. The project wizard appears and expands the
Mavenfolder. Select Maven Project ...