DEV Community

Suresh Ayyanna
Suresh Ayyanna

Posted on

1 1 1 1 1

How to create a Maven project in Eclipse

This is one of the methods to create a Maven project. But in this rather than creating a project outside Eclipse and then importing it to Eclipse, we will directly create a maven project into Eclipse.

Step 1: Open your Eclipse and Go to File > New > Others.

Image description

Step 2: Select Maven Project and click on Next.

Image description

Step 3: Un-check the 'Use default Workspace location' and with the help of the Browse button choose your workspace where you would like to set up your Maven project.

Image description

Step 4: Select the archetype, for now just select the 'maven-aechetype-quickstart' and click on Next.

Image description

Step 5: Enter the Group Id & Artifact Id and click on Finish button.
Image description

Step 6: Go to the project location to see the newly created maven project. Now open the pom.xml file, which resides in the project folder. By default the POM is generated as below screenshot:

Image description

Step 7: Look at the default folder structure of the Maven project.

Image description

Step 8: Modify POM.xml with the latest Junit and other required dependencies and save the POM.xml

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay