Search This Blog

Sunday, February 26, 2017

M2_REPO classpath Issues In Eclipse IDE

1. Add M2_REPO Manually

Define and add M2_REPO classpath variable manually into Eclipse IDE. Follow below steps :
  1. Eclipse IDE, menu bar
  2. Select Window > Preferences
  3. Select Java > Build Path > Classpath Variables
  4. Click on the new button > defined a new M2_REPO variable and point it to your local Maven repository
  5. Done.


2. SIMPLY DELETE AND RECREATE UR WORKSPACE


1. Delete your workspace
2. Import your projects with "Existing Maven Project"

NOTE: this will create M2_repo in your classpath. no worries. 


No comments:

Hit Counter


View My Stats