M2Eclipse (Plugin) Install

16 Jul 2014

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

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:

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
  • 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
  • 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/.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License