在eclipse中导入openfans的时候,需要设置Maven的资源目录,
默认目录C:\Documents and Settings\kevin\.m2\repository
具体设置方式如 下:
1.运行eclipse
2.window-->references-->Java-->build path-->classpath variables
3.按"New",创建一个目录,指向C:\Documents and Settings\kevin\.m2\repository
默认目录C:\Documents and Settings\kevin\.m2\repository
具体设置方式如 下:
1.运行eclipse
2.window-->references-->Java-->build path-->classpath variables
3.按"New",创建一个目录,指向C:\Documents and Settings\kevin\.m2\repository
OK
如果你希望把安装后的maven2的数据仓库指向其他文件夹,你可以在c:\maven\conf下面找到一个settings.xml文件,打开该文件,找到下面的结点进行修改
<localRepository>c:\maven\.m2\repository</localRepository>
<localRepository>c:\maven\.m2\repository</localRepository>

Leave a comment