step1:默认会放在~/.m2/repository目录下 (“~”代表用户的目录,比如windows下一般都是C:\Documents and Settings\[你的用户名]\),

step2:修改配置文件,位置为%MAVEN_HOME%/conf/setting.xml,

<!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->

修改为:

<localRepository>D:\Eclipse\jars\maven</localRepository>

step3: 修改MyEclipse的MAVEN的存储位置:(eclipse一样)

进入MyEclipse→window→Preferences→Maven4MyEclipse→Maven→Installations→User Sittings

点击右侧Browse指向%MAVEN_HOME%\conf\settings.xml

----------------------------------------------------------------------

%MAVEN_HOME%代表你的MAVEN所在目录

04-14 02:35