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

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

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

C:\Documents and Settings\administrator\.m2\repository\**\***\***.jar

说明肯定M2_REPO这个参数Eclipse不认得,所以需要给它添上:

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

new一个,名字当然是M2_REPO,属性选folder,

指向C:\Documents and Settings\administrator\.m2\repository


我的jar包地址是 d:\jar\repo

猜你喜欢

转载自songpo-ath-taobao-com.iteye.com/blog/1213131