Eclipse built-in maven support vs M2Eclipse - eclipse

Has Eclipse 3.7.2 built-in Maven support? How does it differ from m2eclipse?
#EDIT
m2e basic version is bundled with Eclipse 3.7 Java (not yet with Java EE). For the full version one has to install m2e from either its update site or the Marketplace.

List of Indigo (Eclipse 3.7) projects: http://www.eclipse.org/indigo/projects.php
Includes Maven support [new]: http://www.eclipse.org/m2e/
As you can guess by the name it is just m2e bundled with the release (and upped the version number from the external source).

You can install maven eclipse from here - http://download.eclipse.org/technology/m2e/releases/
Note: Sonatype contributed m2e plugin to eclipse. You can read about it here http://www.sonatype.com/people/2011/06/where-is-m2eclipse/

Related

Eclipse Mars: No entry for Maven under Window-> Preferences

I have Mars2 version of Eclipse in my system. I had installed m2Eclipse to integrate maven with Eclipse from here http://download.eclipse.org/technology/m2e/releases, however, I do not find the option for maven in Eclipse, neither under preferences nor under perspectives. Is there some other version of m2Eclipse to be used with Mars2 or what else can be done to resolve this issue?
Currently, I have Apache Maven 3.3.9 installed in my system along with JRE 1.7. I have other plugins as well like subclipse, beyond compare, JUNIT etc which seems to be installed properly.
Do this:
Right click on your Project --> Select Configure --> Convert to Maven Project
m2eclipse is not required to be installed separately with Mars2. It is by default integrated with it when we download Mars2 binaries. Also, we should be targeting maven 3.3.3, since m2eclipse is version 1.6 which targets maven 3.3.3.
M2eclipse v1.7 targets maven 3.3.9 and is mainly targeted for Eclipse Neon

Eclipse (Mars) doesn't display maven options despite Maven/m2e installation

As stated, Eclipse Mars doesn't display any Maven options (such as creating or converting to a Maven project), despite me having verified that the m2e plugin and Maven 3.0.5 are both installed. I'm on Ubuntu 14.04.

M2e tool error for EClipse Kepler

Downloaded Eclipse J2EE Kepler now and wanted to install the Maven plugin from Market place.
But I keep getting this error in the picture:
So this plugin not working anymore? Is there any other recommended plugin to install?
If you look at the m2e-wtp site you'll find that this feature is installed by default in the Eclipse Kepler distribution. So it's not removed, but just already included in the installation. Moreover, they (finally) upgraded it from incubation to 1.0 version. Enjoy it!
m2e-wtp graduated from the Eclipse incubator to reach version 1.0.0. Moreover, m2e-wtp and m2e are now included in the Eclipse Java EE distribution by default. m2e-wtp 1.0.0 adds Java EE 7 support in Kepler and a few other new cool features.
This error means it is already installed in your IDE.
IF any updates are released by M2E tools then it can be updated like you did or if you click on 'Check for Updates'.
cheers,
Saurav

Error: m2e Install In Eclipse

I've been attempting to install Maven Integration for Eclipse and I've received these errors.
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
Missing requirement: Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core.ui 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
Cannot satisfy dependency:
From: m2e logback appender 1.4.0.20130601-0317 (org.eclipse.m2e.logback.appender 1.4.0.20130601-0317)
To: bundle org.eclipse.m2e.core.ui [1.4.0,1.5.0)
Cannot satisfy dependency:
From: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)
To: org.eclipse.m2e.logback.appender [1.4.0.20130601-0317]
My process has been Help >> EclipseMarketplace >> Search "Maven Integration for Eclipse" >> Install (m2e)
Please help.
Edit
After running into a plethora of issues, the decision was made to uninstall Eclipse Indigo 3.6.2 and install Indigo 3.7 (as per the standards of the company I currently work at). After taking this course of action, all issues with installations (maven and otherwise) were resolved.
I ran into a similar issue today and found that this question also has recently been asked and answered at the atlassian forum as well. My solution was to install slf4j based on guidelines from this blog post about "SLF4J Logging in Eclipse Plugins".
To extract, here is what I did:
Eclipse -> Help -> Install New Software
Add a new software site:
Name: slf4j
Url: http://www.fuin.org/p2-repository/
Expand "Maven osgi-bundles" and select "slf4j-api"
Click "Next" and follow the installation.
After the installation has completed (and Eclipse has been restarted) I was then able to install the maven plugin.
UPDATE:
Some of the other answers in this thread now contain links to offical package repositories. I haven't tested if they are working, but if you would prefer to use an official repository, now you know where to find them :)
Use the software update site as http://download.eclipse.org/technology/m2e/releases/1.0
That worked for me and got away with the exact same error message.
Plugin team has created a fix for m2e 1.4 & Eclipse Indigo (with this precision : Indigo is no longer officially supported for m2e) :
P2 repository : http://download.eclipse.org/technology/m2e/releases-for-indigo/1.4/
Reference : m2e-users mailing list
Using Helios, and I used this repository to download Maven Integration For Eclipse with no problems.
http://download.eclipse.org/technology/m2e/releases/1.3
That mean the folder eclipse/plugins missing "org.slf4j.api_1.6.4.v20120130-2120.jar", so you need copy the file to eclipse/plugins!
Ubuntu 13.04, Eclipse 3.8.1. For Step 3 all I had to do was add the main juno download site: http://download.eclipse.org/releases/juno and m2e can be installed from there.
This is because maven 1.5 is not compatible with current eclipse version.
So we need to use maven 1.4 or 1.3
Steps to install maven 1.4 is below
1)Click Help in eclipse
2)Install New Software
3)Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"
4)Uncheck the checkbox "Show only the latest versions of available software"
if do not uncheck the checkbox it will only latest version and do not show maven 1.4.
5)Select m2e and slf4j of 1.4 version and click next.
If you're using eclipse Indigo -- It seems to be missing many files. If you download eclipse Kepler it seems to have the files that are lacking in Indigo. May suggest to switch.
I had this problem with the latest version of eclipse Indigo 64bit. I solved installing the latest version of eclipse Juno 64bit.
You can find the org.slf4j.api 1.6.4/1.7.2 on the Orbit repository, which is more reliable than other third party repositories.
The reason Maven can't resolve slf4j is because Maven can't find it in available software site. That is why the suggestion of #Lasse to use another software site works. I would like to point out that the basic root cause is because the atlassian documentation is out-of-date now. So we can just use the latest version of Maven.
Reference: Maven for Eclipse (M2E) Installation error

Maven2 WTP version for Eclipse

I want to use Maven 2 for buliding Web App using Spring 3.05 and Hibernate 3.6 on Tomcat 6 and JDK 1.6.20
In order to convert Maven WEb Project to Eclipse Web Project I need to use the following command:
mvn -Dwtpversion=[something] eclipse:eclipse
In Maven+ Eclipse documentation I can see that The plugin actually can create WTP R7, 1.0, 1.5 and 2.0 configuration files.
Which version should I use in my case?
What are the other versions need for?
If I check in Eclipse it seems like I have WTP 3.1.1 installed.
Please elaborate.
If you are using m2eclipse - eclipse plugin for maven support, you can import the maven project to eclipse without needing to run maven eclipse plugin. This will save you the trouble of having to specify version.