How to Setup Maven in Eclipse?

Open Eclipse

Go to Help

Select Eclipse Marketplace

Search for Maven Integration for Eclipse

Install the Maven plugin if it is not already installed

Restart Eclipse

Go to Window

Select Preferences

Expand Maven

Set the Maven installation if needed

Apply and close Preferences

Create or open a Java project

Right-click the project

Select Configure

Click Convert to Maven Project

Enter the required Maven details

Click Finish

Verify the pom.xml file is created

Update the project if needed

Use Maven goals from the Run As menu

Suggested for You

Trending Today