http://www.jianshu.com/p/191685a33786
vi ./bash_profile
然后按I,开始编辑
编辑完成后 :wq 退出保存
重新设置本地Repository的位置
在maven安装目录的conf目录下,vi settings.xml
第54行左右有这么一段:
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
在这段之后依样画葫芦加一行<localRepository>具体的绝对路径</localRepository>
即可
保存退出。