I clicked the New button and created the M2_REPO classpath variable and pointed it to my local maven repository.The new M2_REPO classpath variable can be seen here.
(Please note that the functionality for adding a dependency or a plugin is exactly the same so we’ll demonstrate it by adding a dependency.) m2eclipse offers two options for adding dependencies to a project.The first option is by manually editing the file to add a dependency is that you must already know the information about the artifact, or use the features discussed in the next section to manually locate the artifact information in the repository indexes.In other words, when workspace resolution is enabled, project's don't have to be installed in the local repository to relate to one another. This has the effect of telling m2eclipse to stop trying to manage your project's classpath, and it will remove the Maven Dependencies classpath container from your project.If you do this, you are essentially on your own when it comes to managing your project's classpath.So I am looking forward answer for two questions cd ~/Downloads wget sudo mkdir -p /usr/local/apache-maven sudo mv apache-maven-3.1.1gz /usr/local/apache-maven cd /usr/local/apache-maven sudo tar -xzvf apache-maven-3.1.1gz $ mvn -version Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T ) Maven home: /usr/share/maven3 Java version: 1.8.0_66, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux", version: "3.19.0-33-generic", arch: "amd64", family: "unix" I found this guide worked best for Ubuntu 14.04 to upgrade maven to 3.2.1 First, remove the previous mavens of maven, do: wget tar -zxf apache-maven-3.2.2gz /tmp/ ln -s /tmp/apache-maven-3.2.2/bin/mvn /usr/local/bin/mvn I just upgraded on mac and it was pretty easy.
Get the maven from https://maven.apache.org/Just add the maven~/bin to the PATH and update the JAVA_HOME.
The upside is that after manually adding the dependency and saving the , the project’s Maven Dependencies container will be automatically updated to include the new dependency.
Figure 7.1, “Manually Adding a Dependency to the Project's POM” shows how I added a dependency for into the query field, m2eclipse queries the repository indexes and even shows a version of the artifact that is currently in my local Maven repository.
Select this option, and m2eclipse will attempt to download the source artifact from the Maven repository.
If it is unable to retrieve this source artifact, you should ask the maintainers of the project in question to upload the appropriate Maven source bundle to the central Maven repository.
If the central Maven repository contains a source artifact for a particular project, you can download the source from the repository and expose it to the Eclipse environment.