修改maven的conf下的settings.xml文件,在settings下添加如下字样,具体位置自己设定
<localRepository>f:/m2/repository</localRepository>