If you get the error:
Unbound classpath variable: 'M2_REPO/...' in project '...' it means you have not setup your M2_REPO variable as a classpath variable in Eclipse. To fix this:

  1. Open Eclipse Preferences
  2. Go to Java -> Build Path -> Classpath Variables
  3. Add a variable named M2_REPO
  4. Click Folder... and select your repository folder. This will be in user home directory under .m2, ie /Users/AUser/.m2/repository

You can also do this by running the following maven command:
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© 2011 Metova, Inc.