Maven Tool windows shows "null"
已回答
Hello,
I've got the problem that the maven tool window sometimes just shows "null" instead of the project. There is nothing found related to this in the idea log files.
Trying to add the pom.xml of the project manually does not work because the OK button is greyed out when trying to select the pom.xml.
"Reload all maven projects" button does not help either.
Sometimes closing the project and reopening it again helps. But most of the times you have to "invalidate caches and restart" (propably more than once) to make the maven tool window show the project again.
Any idea what is causing this problem? I am using IntelliJ 2021.1 (but the problem was there in earlier versions, too).
请先登录再写评论。
Please share the whole logs folder after reproducing the issue. You can do that privately by creating a new YouTrack issue: https://youtrack.jetbrains.com/newIssue?project=IDEA
Delete the .idea folder from the project folders first, then open the project and it will be fixed
Celalmuhtar Thanks! Just a note to others to avoid unpleasant surprises, you will lose all custom project settings, artifacts and server setup, etc. Once Maven gets corrupted inside IntelliJ, this is the only way forward, works perfectly apart from a slight inconvenience of doing the setup over.