IntelliJ 14.1 is too slow when I import a Maven project

冷暖自知 提交于 2019-11-29 02:20:17

问题


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

  • 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).

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.)

Details:

  • Windows 7
  • Java 7
  • Apache Maven 3.2.1

Edit:

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

    Your projects open faster and the IDE is more responsive as some processes now run in the background.

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


回答1:


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.

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:




回答2:


  1. It's all because Maven version. Maven 3.0.5 or Maven 2.x use simplified dependency resolution so often it can be used during import for big projects. Thought it can work incorrect for some projects which uses 3.1+ Maven.
  2. Switching off auto-importing is another solution.


来源:https://stackoverflow.com/questions/29279859/intellij-14-1-is-too-slow-when-i-import-a-maven-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!