我有一台带有两个硬盘的电脑。在第一个,一个SSD磁盘,我有Windows分区(C)和第二个(D),一个raid卷,我安装所有的程序。我还将我的用户文件夹(桌面,文档,下载,图片和视频)移动到 D:/ Users / David 。
I have a computer with two hard drives. In the first one, an SSD disk, I have Windows partition (C) and on the second one (D), a raid volume, I install all the programs. I also moved my user folders (desktop, documents, downloads, pictures and videos) to D:/Users/David.
在 D:/ Program Filles(x86)上安装IntelliJ Idea后,在 D:/ Users / David 。没问题,因为一切都很好。然后我安装了Scala插件,创建了一个新的SBT项目并构建它。在此之后,SBT使用的.sbt目录位于 C:/Users/David/.sbt 中,但我项目中对库的引用指向 d:/Users/David/.sbt 。问题是,如何强制IntelliJ Idea或Scala插件将库下载到 D:/Users/David.sbt ?
After installing IntelliJ Idea on D:/Program Filles(x86) a .IntelliJIdea13 directory appeared on D:/Users/David. No problem with this as all was working nice. Then I installed Scala plugin, created a new SBT project and build it. After this, the .sbt directory used by SBT was in C:/Users/David/.sbt but the references to the libraries in my project are pointing to D:/Users/David/.sbt. The question is, how can I force IntelliJ Idea or Scala plugin to download the libraries to D:/Users/David.sbt?
推荐答案不能100%确定这是否可以解决,您可以更改Intellij IDEA的HOME文件夹。查找构思可执行文件所在的文件夹。在Linux中,我有
Not 100% sure if this can be a solution, you can change the HOME folder of Intellij IDEA. Look for the folder where the idea executable is. In Linux I have on
~/applications/idea13/bin在Windows上,您可以检查菜单项的属性。应该有文件 idea.properties ,其中包含构思文件的主文件夹位置。
On Windows you can check the properties of the menu item. There should be file idea.properties that contains the home folder location of the idea files.
您可以找到更多信息这里描述更多细节:
You can find more information here that describe more details:
可以通过编辑以下文件来更改位置: IDE_HOME \ bin\idea.properties
Locations can be changed by editing the following file: IDE_HOME\bin\idea.properties
按照idea.properties文件中的注释更改默认值确保取消注释定义这些属性的行: idea.config .path idea.system.path idea.plugins.path idea.log.path
Follow the comments in idea.properties file to change the defaults, make sure to un-comment the lines defining these properties: idea.config.path idea.system.path idea.plugins.path idea.log.path
另一方面,您可以将项目的位置更改为D:/ Users / David。你还应该看一下项目文件夹,应该有一个带有库目录的.idea文件夹。它们包含项目中使用的库的位置及其路径。
On the other hand you can change the location of your project to D:/Users/David. you should also have a look inside the project folder, there should be a .idea folder with has a library directory. They contains the location of the libs used in the project with their paths.
更多推荐
如何强制IntelliJ使用不同的主文件夹
发布评论