RT不想放在C盘,空间本来就不够的说,怎么改?
我是在myeclipse8.5中用的maven,高手指教!

解决方案 »

  1.   

    在用户路径下的.m2文件夹里放个文件settings.xml,内容如下
    <?xml version="1.0" encoding="UTF-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
        <localRepository>你要指定的路径</localRepository>
    </settings>
      

  2.   

    修改 %MAVEN_HOME%\conf\settings.xml里的
    <!-- localRepository
     | The path to the local repository maven will use to store artifacts.
     |
     | Default: ~/.m2/repository
     <localRepository>/path/to/local/repo</localRepository>
        -->