在新机器上安装Maven后,把Maven工程导入Eclipse,
Eclipse里的project报Unbound classpath variable: 'M2_REPO/**/***/***.jar'
但是我本地该路径下其实是包含这些jar包的:
C:\Documents and Settings\xxxxx\.m2\repository\**\***.jar
解决办法:
在Eclipse中添加M2_REPO参数:
Eclipse->Windows->Preferences->java->Build Path->Classpath Variables,
新建一个名字是M2_REPO,path点folder,指向C:\Documents and Settings\xxxxx\.m2\repository,如下图: