Related:
- https://intellij-support.jetbrains.com/hc/en-us/community/posts/206434489
- https://youtrack.jetbrains.com/issue/IDEA-127515
- After adding a plugin or a dependency to
pom.xml
and auto-importing changes or importing changes manually, the plugin or dependency is still not resolved/downloaded
- Check via
CTRL+SHIFT+A
-> Enter "Maven Projects" (you would a red underlined plugin or dependency)
- "Cannot reconnect" to remote Maven central repository
- Check via
CTRL+SHIFT+A
-> Enter "Maven Settings" > Repositories (you would see a red entry)
- Corrupted download: background process has been interrupted/aborted...
- due to a network problem
- (un)intentionally by the user
- After downloading the archive, while extracting the archive, IntelliJ aborts the process because of too low disk space
- Simultaneous downloads from the Maven repository (?)
Before you try any of these solutions, save your work, clear IntelliJ's cache via File > "Invalidate Cache / Restart" and check if the problem persists.
Please also try if a simple "Reimport All Maven Projects" (type as action using CTRL+SHIFT+A
) changes anything.
If you have multiple unresolved plugins, it's maybe less work for you to follow the second solution instead to redownload all plugins at once.
Let's assume the plugin's full name which causes the problem is: org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade
(replace with your plugin's name)
- Close IntelliJ
- Get the path of your plugin. The path of the example plugin would be
org/apache/maven/plugins/maven-shade-plugin
(substitute '.' and ':' with '/') - Navigate to the affected plugin directory and delete it:
cd ~/.m2/repository/org/apache/maven/plugins/maven-shade-plugin
ls -a # should show a directory named after your plugin's version number
mv 2.4.3 2.4.3_old
- Start IntelliJ again
CTRL+SHIFT+A
-> Enter "Reimport All Maven Projects"- If the problem still persists, try the second solution below
- Make sure that you have enough disk space (especially when using a VM)
- Try to update the repository
CTRL+SHIFT+A
-> Enter "Maven Settings" > Repositories -> select the red entry and click "Update" - Wait and drink ☕. This possibly takes a long time depending on your system, especially after the download has finished. The progress bar stands still but package extraction is in progress, please be patient.
- If IntelliJ fails and the problem still persists: close IntelliJ, then:
cd ~/.m2
mv repository repository_old
- Update as descibed in 2.
Confirming that, Just using the plugin(s) once resolved the issue.