Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up new Maven In eclipse

Tags:

maven

I am new to this maven concepts ,I read some theoretical articles about maven ,so next is I want learn it by practicing some examples in Eclipse , I googled for step to set-up maven in eclipse ,but I didnt get correct approach for this,,, It would be great if some one guide me in this.. Thank u

like image 827
ULLAS K Avatar asked Jan 04 '12 06:01

ULLAS K


People also ask

How do I get Maven in Eclipse?

#1) From the top menu of Eclipse select Help -> Install new Software, and the following window will open. #2) Click on the Add button highlighted in the above image. An add repository dialogue box will open, enter the following in the two text fields of this box. Click on the Add button.

Do we need to install Maven separately for Eclipse?

You can Launch Maven builds from within Eclipse. It does the dependency management for Eclipse build path based on Maven's pom. xml. It resolves Maven dependencies from the Eclipse workspace without installing to local Maven repository (requires dependency project be in same workspace).


2 Answers

Watch the video tutorial on Eclipse m2e website. The basic steps are:

  • Select Help > Install New Software. This should display the "Install" dialog.
  • Paste the Update Site URL (http://download.eclipse.org/technology/m2e/releases) into the field named "Work with:" and press Enter. Pressing Enter should cause Eclipse to update list of available plugins and components.
  • Choose the component, Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
  • Click Next and agree to the terms.
  • Click Finish to begin the installation process. Eclipse will then download and install the necessary components.
  • Once the installation process is finished, Eclipse will ask you if you want to restart the IDE.
like image 69
Nishant Avatar answered Oct 12 '22 23:10

Nishant


Here are step-by-step instructions for installing/integrating Maven with Eclipse, up to date as of August 2013.

(Note: the latest version of Eclipse is Kepler, which already has Maven installed. If you are using Kepler, verify that you have it installed by going to Help => About Eclipse, and then clicking on Installation Details).

1. Go to Help => Eclipse Marketplace. Search for Maven, and select Maven Integration for Eclipse. Click Install.

Eclipse Marketplace

2. Verify all three boxes are checked, then click Confirm.

Confirm

3. When you're done, restart Eclipse.

like image 26
James Dunn Avatar answered Oct 12 '22 23:10

James Dunn