Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how install maven on eclipse

i want to install maven plug in on eclipse. but when add the maven site in install software section, and beginning to download and install it, an error occurred about dependency. how can fix it? i want a complete installation guide...

like image 614
013 Avatar asked Feb 24 '11 09:02

013


3 Answers

Do these steps:

  1. In Eclipse, go to "Help->Install New Software".

  2. Press "Add" in the upper right button in the opened window.

  3. Set the name textbox to be "Maven2Eclipse".

  4. Set the value textbox to be http://download.eclipse.org/technology/m2e/releases

    In case the link is not valid, get one from http://www.eclipse.org/m2e/download/

  5. Press Ok, select the Maven project, and install it.

like image 196
Hesham Yassin Avatar answered Nov 20 '22 16:11

Hesham Yassin


first which dependencies are missing? A good maven plugin for eclipse is the eclipse maven sonatype, m2eclipse.

like image 33
Dimitri Avatar answered Nov 20 '22 14:11

Dimitri


Install Maven Plugin for Eclipse

Installing a Maven Plugin for Eclipse can be a bit tricky if you want to get the whole spectrum of features. By default you would go to “Eclipse -> Help -> Software Updates -> Find and Install”, then “Search for new features to install”, then click on “New Remote Site”, and enter the Maven Projects name (e.g. Maven2Plugin) and its home URL there “http://m2eclipse.codehaus.org/“.

Once you install it at first everything would seem quite right. However, if you try “Import” a Maven Project, you will not see such an option in under the “General” menu, since it would be missing.

The reason for that is that “http://m2eclipse.codehaus.org/” brings in an old version of the plugin. (At the moment of writing) It brings in “Maven 2 Plugin 0.0.9″, whereas what you need is 0.0.12.

Hence you read the “Maven Integration for Eclipse” installation guide and point your “New Remote Site” to “http://m2eclipse.codehaus.org/update/” instead of “http://m2eclipse.codehaus.org/“. The one thing to be cautious about is an “update” link will try to also bring “subclipse” and “mylin” projects, hence you will need to “uncheck” them if you do not want to bring them:

maven

⸺ from https://blog.dotkam.com/2008/02/24/install-maven-plugin-for-eclipse/

like image 6
Ashwin Patil Avatar answered Nov 20 '22 14:11

Ashwin Patil