M2Eclipse (Plugin) Install
16 Jul 2014
- When setting up a new Eclipse 3.7 (Indigo) environment, I found that m2e 1.4 & 1.5 had a dependency on slf4j. This is resolved according to this website: http://stackoverflow.com/questions/17352485/error-m2e-install-in-eclipse
- M2e 1.5.0 had a dependency on guava which I did not explore because I was able to install m2e 1.4.1 without this dependency.
- There was some question whether or not the m2e update site has changed, but it remains http://download.eclipse.org/technology/m2e/releases.
Backing up 17 Jul 2014
Here's an updated version of how this should be done: https://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
30 Sep 2012
- I've moved to Ubuntu 12.04.1 LTS and the default version of Eclipse that comes with this distribution is Indigo (3.7). I'm re-installing all plugins since nothing about Eclipse moved over with the upgrade.
- Maven itself needed to be re-installed:
sudo apt-get install maven
...
mvn -version
Apache Maven 3.0.4
- I've exported a current list of Update Sites from andromeda to sagitta.
- Latest Maven Plugin Update Site: http://download.eclipse.org/technology/m2e/releases
- Version 1.2.0.20120903-1050 is available there along with a corresponding slf4j logger.
16 Oct 2011
- While installing this under Ubuntu, I'm finding that the Maven Plugin has transferred to the Eclipse Project. However, it seems that the latest version is intended for Eclipse 3.6 and I'm running 3.5. Here's what I found:
-
- http://m2eclipse.sonatype.org/installing-m2eclipse.html is the update site I should be using for Eclipse 3.5.
- Version 0.12.1.x is what I found to be the latest. (looks like January of 2011)
-
Versions
There's a new version of M2Eclipse since this was first written. Some points to watch for from the M2Eclipse Install website:
- You can't do an upgrade from 0.9.8 to 0.10.0. You have to uninstall first or run a new installation of Eclipse.
- If you are using m2eclipse 0.10.0 with a workspace that contains projects created under m2eclipse 0.9.8, you must remove the workspaceState.ser file. The workspaceState.ser file is located within the workspace directory in $workspacedir/.metadata/.plugins/org.maven.ide.eclipse/workspaceState.ser. If you remove this file, m2eclipse 0.10.0 will regenerate it as needed.
Version 0.12.0 Instructions
- Same original site for m2eclipse
- Got the Galileo site and that had the pieces that I needed to satisfy the unresolved dependencies.
- Did not need to configure the location of the settings.xml; it was already there.
Version 0.10.0 Instructions
- Main site for supplier of m2eclipse (Sonatype).
- As with other Eclipse plugins, you use this URL in the Help -> Install New Software … dialog of Eclipse
- Recent 0.10.0 versions: http://m2eclipse.sonatype.org/sites/m2e.
- Selecting "Maven Integration for Eclipse" (the only choice)
- No extras installed on ThinkPad, but they may be interesting for home dev.
- After installation, go to Window -> Preferences Maven -> Installation, and point the "Global Settings" to the dev\apache-maven-2.2.1\conf\settings.xml file. This will assure that the repository being used is the same as the copy that the command line mvn uses. (There is also a separate user settings under Window -> Preferences; Maven).
Version 0.9.8 Instructions
- Main site for supplier of m2eclipse (Sonatype).
- As with other Eclipse plugins, you use this URL in the Help -> Install New Software … dialog of Eclipse
- Old 0.9.8 versions: http://m2eclipse.sonatype.org/update/.
- Selecting
- All of Maven Integration
- From Maven Optional Components:
- Maven Central repository index
- Maven Doxia Editors
- Maven issue tracking configurator for Mylyn 3.x
- Nothing from Maven Project Configurators
- Finding that the org.eclipse.equinox.p2.iu/javax.wsdl/ isn't available. From the m2eclipse "[Installation Requirements|http://docs.codehaus.org/display/M2ECLIPSE/Installation+Requirements]" page:\\{{{"Maven integration for Eclipse" (core feature)
and optional "Maven POM Editor" feature depend on the
"Eclipse XML Editors and Tools" feature from WST}}}
- After installation, go to Window -> Preferences Maven -> Installation, and point the "User Settings" to the dev\apache-maven-2.1.0\conf\settings.xml file. This will assure that the repository being used is the same as the copy that the command line mvn uses.
- Having fits with one installation's local repository (after having missed the config step above and gotten perhaps the wrong repository linked up). This appears to be preventing adding and indexing the Maven Central repository: http://repo1.maven.org/maven2/.
page revision: 23, last edited: 17 Jul 2014 18:41