Connect to us ( @twitter | @facebook )
This tutorial is a step-by-step guide for how to create web project in Eclipse using Maven. It is simple tutorial for the beginners.
It is a step-by-step tutorial for creating a simple Maven project in Eclipse IDE. In my earlier tutorials, I have written about Create Web Application Project With Maven and How to write custom plug-in for Maven. Here I will write how to create very simple web project using Eclipse.
Navigate to File -> New -> Maven Project
In the first step, if you select the “Create a simple project (skip archetype selection)”, it will skip the archetype selection dialog box and will create its own maven project. Archetypes are the predefined maven plug-ins to create a project. For example, if you want to create a web project, you would use the archetype “web” so that the folder structure will be created for web projects.
The below dialog box is for entering the “Group Id” and “Artifact Id” details.
If you have not selected the “Create a simple project (skip archetype selection)” in the first dialog box, then you would be shown the below dialog box to select the archetype from the list. Here I am choosing the “web” archetype.
The final folder structure would look like below. That’s it. Now you have maven project created in your eclipse.