修改{MAVEN2_HOME}\conf\setting.xml,如下所示:
<settings>
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
-->
<localRepository>F:/work/maven/repository</localRepository>
如果你安装了m2eclipse插件,还需要将
preferences >> maven >> installations 中的
User Settings改为你的{MAVEN2_HOME}\conf\setting.xml
这时,Local Repository会自动定位到却换后的repository上来。
没有评论:
发表评论