Maven plugins can not be found in IntelliJ

Spring picture Spring · Dec 10, 2013 · Viewed 169.7k times · Source

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.

Answer

GarfieldKlon picture GarfieldKlon · Nov 27, 2014

For newer versions of IntelliJ, enable the use plugin registry option within the Maven settings as follows:

  1. Click File 🡒 Settings.
  2. Expand Build, Execution, Deployment 🡒 Build Tools 🡒 Maven.
  3. Check Use plugin registry.
  4. Click OK or Apply.

For IntelliJ 14.0.1, open the preferences---not settings---to find the plugin registry option:

  1. Click File 🡒 Preferences.

Regardless of version, also invalidate the caches:

  1. Click File 🡒 Invalidate Caches / Restart.
  2. Click Invalidate and Restart.

When IntelliJ starts again the problem should be vanquished.