You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IntelliJ中Maven父模块artifactId不更新及最近打开列表问题

Fix Old ArtifactId Showing in IntelliJ's "Open Recent" Menu

Got it, let's fix that annoying stale artifactId entry in your Open Recent list without re-cloning the repo. Here are three straightforward, reliable methods:

1. Remove the Old Entry Directly from the Welcome Screen

This is the quickest, most intuitive fix:

  • Close your current project to land back on IntelliJ's Welcome screen (if you're already in the project, go to File > Close Project).
  • Locate the old artifactId entry in the Recent Projects section on the welcome screen.
  • Right-click that entry and select Remove Selected (or Remove from List—the label might vary slightly by IntelliJ version).
  • Re-open your project using its new artifactId name, and it will replace the old entry in the Open Recent menu automatically.

2. Manually Edit the Recent Projects Configuration File

If the welcome screen method doesn't stick, you can tweak the config file that stores IntelliJ's recent project history:

  • First, close IntelliJ completely (make sure it's not running in the background).
  • Navigate to the config directory based on your operating system:
    • Windows: C:\Users\<YourUsername>\.IntelliJIdea<Version>\config\options\recentProjects.xml
    • Mac: ~/Library/Application Support/JetBrains/IntelliJIdea<Version>/options/recentProjects.xml
    • Linux: ~/.IntelliJIdea<Version>/config/options/recentProjects.xml
  • Open this XML file with any text editor.
  • Look for entries containing the old artifactId—you'll see lines under <option name="recentPaths"> pointing to your project's old name.
  • Either replace the old artifactId with the new one in those file paths, or delete the entire <list> item for the stale entry.
  • Save the file and restart IntelliJ. The Open Recent menu should now display the correct project name.

3. Clear IntelliJ's Caches (Last Resort)

If the above methods don't resolve the issue, clearing caches will force IntelliJ to refresh all project metadata:

  • While in your project (or from the welcome screen's File menu), go to File > Invalidate Caches....
  • In the pop-up window, select Invalidate and Restart.
  • Once IntelliJ restarts, re-open your project. The Open Recent list should update to reflect the new artifactId.

内容的提问来源于stack exchange,提问作者Absent

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:10:00