title: How to build and run Maven projects after importing into Eclipse IDE
body: <p>I am learning building a Java project in Eclipse using Maven. I created a Java project <code>HelloWorld</code> from<br>
  “maven-archetype-quickstart” template in a folder <code>D:/maven_projects</code>. Then to convert the Maven project to support Eclipse IDE, I navigated into the project folder and issued the commands:<br>
  <code>mvn eclipse:eclipse</code> and <code>mvn package</code> .  </p>
  
  <p>Then I imported the project in Eclipse and did the necessary Eclipse configurations like setting the Maven local repository in Eclipse classpath. Now the project in <code>D:/EclipseWorkspace</code> folder. I ran the project successfully in Eclipse printing "helloworld".  </p>
  
  <p><strong>Now</strong> if I want to go on develop the project and for that reason want to add new dependencies in <strong>pom.xml</strong> in Eclipse, then the new jars are not added in classpath when I run the project.  </p>
  
  <p>So my question is after importing a Maven project into Eclipse how can I add more and more dependencies in pom.xml, then build and run the project? What is the recommended and efficient way to do this?</p>