title: Missing M2_REPO classpath variable when I open Eclipse
body: <p>I'm working with Eclipse IDE and I've already configured maven settings.</p>
  
  <p>I did <strong>Windows -> Preferences -> Maven -> Installations</strong> and I added my own maven installation. Then I did <strong>Windows -> Preferences -> Maven -> User Settings</strong> and I checked that it pointed to the correct settings.xml and my Local Repository. Everything is ok, and I clicked on Update Settings and Reindex just in case.</p>
  
  <p>The first time I did this, in <strong>Windows -> Preferences -> Java -> Build Path -> Classpath Variable</strong> there was a variable called <strong>M2_REPO</strong> and it pointed to the correct repository. But the next day I opened again Eclipse, the <strong>M2_REPO</strong> variable was gone.</p>
  
  <p>Am I missing any further configuration? Can anyone help with this?</p>
  
  <p>Thanks in advance.</p>
  
  <p>UPDATE:</p>
  
  <p>I'm using Windows 7.</p>
  
  <p>UPDATE 2:</p>
  
  <p>I don't know why I have to do this <code>mvn eclipse:eclipse</code> in cmd before running eclipse to have all the projects correctly. This could be a solution.</p>