Maven configuration disappear
已回答
Currently, I am using version "IntelliJ IDEA 2023.3.2 (Ultimate Edition)." My issue is with disappearing Maven configurations after restarting the environment or rebooting the computer (Only two configurations disappear and are not visible in the "Run/Debug Configurations" list).
A strange situation occurs: after running the previous version "IntelliJ IDEA 2023.1" and then launching new version again, the configurations are visible. They are saved in .idea/workspace.xml. Has anyone encountered this problem and found a solution? Can`t find any solution.
请先登录再写评论。
Hello!
Thank you for reporting this!
Would you be able to share the Project or upload the
.ideadirectory for the investigation along with the affected Run Configurations' names?I have this issue as well and it is very annoying. My main Maven build disappears every time I restart the IDE. I even have the Store as project file checked (or unchecked, it does not matter) and I see the file in the .idea/runConfigurations but it is not in the list of run configs I can select. I have to recreate it each and every time.I have tried changing the name of the config but it does not seem to matter. Not all Maven configs disappear, only one (may be a few more I didn't notice). Thanks!
IntelliJ 2023.3.2 (Ultimate Edition)
Build #IU-233.13135.103, built on December 20, 2023
Sergetania would you be able to share the affected Project or its'
.ideafolder for investigation?Yes, I could give you a partial project. Please let me know how. Thanks!
Sergetania You can upload the Project using our upload service and share the Upload ID in thread.
Same problem here.
Roman Vatagin here I uploaded my .idea directory: Upload id: 2024_01_26_24HoRPCvMAQHYjbwX5Rmxk (file: .idea.zip)
The maven run configuration you can find as “myhome-parent GAZ” in the workspace.xml is not available within the run configs once I restart the IDE.
Thank you for sharing!
This is likely to be the issue described in IDEA-343198, but to confirm it, we would also need IDEA Logs (
Help → Collect Logs and Diagnostic Data).Could you please upload those as well?
Sounds very much like it.
Though here the logss. Upload id: 2024_01_26_LKdtqHTqRKKyxL756PoVLq (file: idea-logs-20240126-15431510999074989716928719.zip)
Thank you Roman!
Thank you for sharing the logs!
I can confirm this is the same issue.
Please make sure to upvote the YouTrack Issue linked in my previous message to raise its' priority for the developers.
Roman Vatagin
I am using IntelliJ IDEA 2023.3.2 (Ultimate Edition)
Build #IU-233.13135.103, built on December 20, 2023
In my case the configuration were still visible in workspace.xml file. I figured that when I change that file (ie. add new config manually there) then it reloads fine and shows the configs in the UI, so I kept playing with my actual configs that disappeared to see what breaks it and in my case it is the usage of a custom Maven home directory instead of the default Bundled one:
When I remove that section the thing starts to work:
I have confirmed that this is the custom Maven setting thing in my case by removing it - the config appeared in UI. I re-configured (using UI) again to use the custom Maven setting, saved and reopened the project - the config was gone again.
Now, the very good thing is that when I put both configs in the XML then only the one that has a problem does not appear. BTW I have not found a way to put custom maven settings on project level - I can only set it up on entire IDE level or per Maven runtime config (haven't tried the maven-wrapper though).
Hi Pawel Kolodziejczyk
According to the corresponding bug report, IDEA-340760, the issue was fixed in version 2023.3.5 of IntelliJ IDEA.
See if it helps to update your IDE and let us know if the issue persists for you in that version too.