本文介绍了导入Maven项目时,IntelliJ 14.1太慢了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我导入Maven项目(导入项目>选择主pom.xml文件>选中自动导入Maven项目>下一步...):

If I import a Maven project (Import Project > choose the main pom.xml file > check Import Maven projects automatically > Next ...):

    $ b IntelliJ IDEA 14.1 Ultimate Edition 中的$ b
  • 大约需要5个小时才能准备好。

  • IntelliJ IDEA 14.0.3 Ultimate Edition 它快了大约20倍。

  • in IntelliJ IDEA 14.1 Ultimate Edition it takes about 5 hours until is ready.
  • in IntelliJ IDEA 14.0.3 Ultimate Edition it was about 20 times faster.

在处理过程中,如果我最大化弹出窗口,它看起来像:

During the processing, if I maximize a popup it looks like:

模块(文件夹)项目区域中仅显示在结尾处(在解析期间仅显示主目录中的文件 - 在这种情况下立即显示)。

The modules (folders) in the Project area are shown only at the end (only the files from the main directory are shown during the "resolving" - in this case immediately).

jar文件已经在.m2文件夹中,因此问题与下载这些jar的时间无关。

The jar files are already in the .m2 folder, so the problem is not related to the time for downloading those jars.

是否需要隐藏设置来提高性能? (复选框,命令等)

Is there a "hidden" setting needed to improve the performance? (a check box, a command, etc.)

详细信息


  • Windows 7

  • Java 7

  • Apache Maven 3.2.1

编辑


  • JDK,Maven,.m2,IntelliJ IDEA和项目来源在同一个驱动器上

  • JetBrains写道:

  • JDK, Maven, .m2, IntelliJ IDEA and the project sources are on the same drive
  • JetBrains wrote:

关于IntelliJ IDEA 14.1,可能更快但是(至少对我来说)不使用默认设置。

regarding IntelliJ IDEA 14.1 and probably it is faster but (at least for me) not using the default settings.

推荐答案

如果您使用Idea 14.1附带的捆绑 Maven,请查看此处:。使用已安装的Maven似乎要快得多。

If you use the bundled Maven that comes with Idea 14.1, have a look here: Slow Intellij IDEA deployment . Using an installed Maven seems to be much faster.

另一项改进可能是更改导入程序的 JDK (可能还有导入程序的 VM选项)从使用内部JRE 到您自己的JDK:

Another improvement could be to change the JDK for importer (and probably the VM options for importer) from Use internal JRE to your own JDK:

这篇关于导入Maven项目时,IntelliJ 14.1太慢了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 20:02