O'Reilly logo

Maven for Eclipse by Sanjay Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required