After installing Maven on the new machine, import the Maven project into Eclipse,
The project in Eclipse reports Unbound classpath variable: 'M2_REPO/**/***/***.jar'
But my local path actually contains these jar packages:
C:\Documents and Settings\xxxxx\.m2\repository\**\***.jar
Solution:
Add the M2_REPO parameter in Eclipse:
Eclipse->Windows->Preferences->java->Build Path->Classpath Variables,
Create a new name M2_REPO, point the path to folder, point to C:\Documents and Settings\xxxxx\.m2\repository, as shown below: