在eclipse修改maven2资源目录

| No Comments | No TrackBacks
在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
 OK
 
如果你希望把安装后的maven2的数据仓库指向其他文件夹,你可以在c:\maven\conf下面找到一个settings.xml文件,打开该文件,找到下面的结点进行修改

<localRepository>c:\maven\.m2\repository</localRepository>

No TrackBacks

TrackBack URL: http://www.wujianrong.com/mt-tb.cgi/2821

Leave a comment

About this Entry

This page contains a single entry by kevinwu published on July 10, 2007 5:34 PM.

一些参考资料 was the previous entry in this blog.

SiteMesh介绍 (转) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.