Intellij IDEA and Maven, disable reading pom.xml on every small change, even without a save

大城市里の小女人 提交于 2020-01-11 09:47:06

问题


This is causing intellij to become slow and freeze up which is annoying as ****.

It appears as if it analyses other files similar to pom.xml causing freezes on other places as well.

Can this be disabled?


回答1:


In Windows Operating system, Press Ctrl + Alt + S, or File\Settings\ Project Settings section.
in section Maven:

* Uncheck: Import Maven project automatically.

* Section Generated sources folder:, Choose Don't Detect.



* Section Runner: Uncheck Run in background.




回答2:


You can disable option in

Settings -> Maven -> Importing -> Import Maven projects automatically

(see intellij docs)

And then everytime you want to reimport the pom do it in Maven Projects tool window



来源:https://stackoverflow.com/questions/26099685/intellij-idea-and-maven-disable-reading-pom-xml-on-every-small-change-even-wit

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