fix(maven): refresh stale SNAPSHOT sources on dependency reload (#5490)

After a SNAPSHOT dependency was republished and the project reloaded, navigating into it still showed the old sources: SNAPSHOT file names never change, the cached sources jar was reused as long as it existed, and open library editors kept their text. A sources jar older than its binary jar is now stale and replaced atomically; Maven reload waits for jdtls to finish importing, refreshes stale cached SNAPSHOT sources before reattaching archives, and refreshes open library editors. First-time source downloads still follow the Maven setting.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-24 01:09:14 +08:00
1 джерело 9d94b00911
коміт abab90ca60
12 files changed
+508 -105

No files matched your search

+1
Переглянути файл
@@ -19,6 +19,7 @@
</delegateCommandHandler>
<delegateCommandHandler class="ai.openidea.archives.RefreshArchivesCommand">
<command id="openidea.java.refreshArchives"/>
<command id="openidea.java.updateProjectConfigurations"/>
</delegateCommandHandler>
<delegateCommandHandler class="ai.openidea.sources.GeneratedSourcesCommand">
<command id="openidea.java.generatedSources"/>