Issue
After updating IntelliJ from version 12 to 13, the following Maven-related plugins cannot be resolved:
org.apache.maven.plugins:maven-clean-plugin:2.4.1
org.apache.maven.plugins:maven-deploy-plugin
org.apache.maven.plugins:maven-install-plugin
org.apache.maven.plugins:maven-site-plugin
When using IntelliJ 12, these were not in the plugins list. Somehow they've been added after the update and now IntelliJ complains they cannot be found. Where can I remove these plugins from the list OR resolve the problem by installing them?
I can run maven goals clean
and compile
without problem, but the profile/plugins appear red with warnings in the IDE.
EDIT after 8 years: Please also have a look at all other good answers here. The accepted answer is a common solution but might not work for you or for your IDE version
Solution
For newer versions of IntelliJ, enable the use plugin registry option within the Maven settings as follows:
- Click File 🡒 Settings.
- Expand Build, Execution, Deployment 🡒 Build Tools 🡒 Maven.
- Check Use plugin registry.
- Click OK or Apply.
For IntelliJ 14.0.1, open the preferences---not settings---to find the plugin registry option:
- Click File 🡒 Preferences.
Regardless of version, also invalidate the caches:
- Click File 🡒 Invalidate Caches / Restart.
- Click Invalidate and Restart.
When IntelliJ starts again the problem should be vanquished.
Answered By - GarfieldKlon
Answer Checked By - Candace Johnson (JavaFixing Volunteer)