How to create maven project in eclipse

To create a Maven project in Eclipse, you need to have the Eclipse IDE with the Maven plugin installed. Here are the steps to create a Maven project in Eclipse:

Step 1: Open Eclipse and go to “File” -> “New” -> “Project”.

Step 2: In the “New Project” dialog, expand the “Maven” category and select “Maven Project”. Click “Next”.

Step 3: Make sure the checkbox “Create a simple project (skip archetype selection)” is checked, and click “Next”.

Step 4: Enter the Group Id and Artifact Id for your Maven project. The Group Id represents the package structure for your project, and the Artifact Id is the name of your project. Click “Next”.

Step 5: Choose the appropriate settings for your Maven project, such as the Maven version and the Java version. You can also specify additional configurations if needed. Click “Finish”.

Step 6: Eclipse will create the Maven project structure and download the necessary dependencies from the Maven Central Repository.

Step 7: Once the project is created, you can see the project structure in the Project Explorer view. It will contain the src/main/java and src/test/java folders, along with the pom.xml file.

You now have a Maven project set up in Eclipse. You can start adding your Java source code under the src/main/java folder and manage dependencies through the pom.xml file.

Note: If you don’t see the “Maven Project” option in the “New Project” dialog, it means that the Maven plugin is not installed in your Eclipse IDE. In that case, you can install it by going to “Help” -> “Eclipse Marketplace” and searching for “Maven” to find and install the Maven plugin.


About Manohar

I, Manohar am the founder and chief editor of ClarifyAll.com. I am working in an IT professional.

View all posts by Manohar →

Leave a Reply