You may tried to install Maven plugin for eclipse and failed. The problem may be caused by the version. So to solve the problem, you can download a latest version of eclipse. The following shows how I install maven plugin for eclipse under Ubuntu. For Windows platform, it should be the same.
Download Eclipse Kepler
Download latest version of eclipse from: https://www.eclipse.org/downloads/.
Select "Eclipse IDE for Java EE Developers".
Install Maven Eclipse Plugin
Go to http://www.eclipse.org/m2e/download/, and select the latest m2e release. The URL is http://download.eclipse.org/technology/m2e/releases.
Go to Eclipse "Help" -> "Install New Software ...", and put the correct url. It should looks like the following:
Click "Next" to complete.
<pre><code> String foo = "bar"; </code></pre>