I have recently switched from Eclipse Indigo to Eclipse Juno. My thinking was I could just point it at the same workspace I was working with in Indigo. This did work to bring in my project (which is disbursed across several packages), however I now get 176 errors, mainly these two:
The project cannot be built until build path errors are resolved
Unbound classpath variable:'M2_REPO/com/some_path/some.jar' in project 'my_project'
Any ideas as to how I can resolve this? Id really prefer to use Juno.
What is the M2_REPO Variable ?
Excerpt from here :
Check Maven Settings
I recommend that you check whether your Maven installation is setup properly.
Did you use to have the m2e plugin in the old eclipse ? If so, might be worth checking whether there is the same in Juno. Do you see a ‘Maven’ option in preferences ? If so, check the following
Preferences -> Maven -> Installations:If that plugin is present and setup properly you should already have an M2_REPO variable. If not, try adding the current maven installation you have.
Adding M2_REPO Manually
If the maven settings are all ok, you can add the M2_REPO classpath variable manually as follows.
Goto
Preferences -> Java -> Build Path -> Classpath Variablesand add a New Entry by clicking onNewand then enter the following details :Once you do that your Classpath Variables dialogue should look like this :