In this tutorial, You will see, How can you create Maven Project in Eclipse.
It’s very simple to create the Maven Project in eclipse, You need to follow the procedure to create the Maven project in Eclipse.
First, Eclipse should be already installed and configured on your machine. Java 6 or higher version should be installed on your machine.
The Eclipse IDE provides excellent support for the Maven.
Create Maven Project in Eclipse
Let’s see the steps, You need to follow to create the Maven Project in Eclipse.
Open the Eclipse IDE.
Click on File -> New -> Other…
Inside the Other, you will get the new window.
Now Search for “Maven” in the wizard.
Once you will get the Maven Folder. Click on it expands its option.
In the above Window, Select the “Maven Project” and click on next.
You will get the new window title New Maven Project. Click on next.
Click on next one more time. Now you will get the below attached window.
Here, Enter your groupId, artifact ID & version.
Now, Click on Finish button.
Now you will see a maven project with the complete directory structure. All the files will be created automatically such as Hello Java file, pom.xml file, test case file etc. The directory structure of the maven project is shown in the below figure.
You can see, Your whole project is configured and compiled automatically.
Now if you would like to run your project then you just need to Right-Click your project and navigate to Run As .
You will get the below-attached options. You can choose anyone as per your need.