Eclipse里maven的project报Unbound classpath variable: 'M2_REPO/**/***/***.jar'

来源:互联网 发布:phpstudy配置域名 编辑:程序博客网 时间:2024/06/05 07:18

Eclipse里maven的project报Unbound classpath variable: 'M2_REPO/**/***/***.jar'

但是实际上这个jar是存在于我本地机器上MAVEN的目录里的喔:

C:/Documents and Settings/kaseyxiong/.m2/repository/**/***/***.jar

那么咧。。就说明肯定M2_REPO这个参数Eclipse不认得咯。。所以需要给它添上:

Eclipse->Windows->Preferences->java->Build Path->Classpath Variables

new一个,名字当然是M2_REPO,属性选folder,指向C:/Documents and Settings/kaseyxiong/.m2/repository

当当当。。。搞定!

原创粉丝点击