Maven
IntelliJ IDE
Programming
Software Development
Debugging

Maven plugin not found in IntelliJ (unresolved plugin fixes)

Codemia Knowledge Hub ·

When IntelliJ IDEA reports a Maven plugin such as spring-boot-maven-plugin as not found, it usually means Maven could not download or resolve it. The cause is typically one of: no access to the repository, a wrong repository configuration, a missing plugin version, a corrupted local repository, a Java version mismatch, or stale IDE caches.

1. Network, firewall or proxy problems

Maven downloads plugins from remote repositories. If IntelliJ cannot reach them because of network problems, firewall rules or wrong proxy settings, the plugins cannot be resolved.

Fix: confirm the machine can reach Maven Central or your custom repositories. Configure the proxy in IntelliJ under File > Settings > System Settings > HTTP Proxy.

2. Incorrect repository configuration

Repositories can be misconfigured in the project's pom.xml or in the global settings.xml under the .m2 directory.

Fix: make sure the repositories are defined correctly. A Maven Central definition looks like this:

xml
1<repositories>
2    <repository>
3        <id>central</id>
4        <url>https://repo.maven.apache.org/maven2</url>
5    </repository>
6</repositories>

Note that Maven resolves plugins from <pluginRepositories>, not <repositories>. If plugins come from a custom repository, it must be listed there as well.

3. Plugin version not specified

Without a version in pom.xml, Maven tries to fetch the latest version, which might not be available or might have dependency conflicts.

Fix: specify a version for every plugin:

xml
1<plugins>
2    <plugin>
3        <groupId>org.apache.maven.plugins</groupId>
4        <artifactId>maven-compiler-plugin</artifactId>
5        <version>3.8.1</version>
6    </plugin>
7</plugins>

4. Corrupted local repository

The local repository (&#126;/.m2/repository) that stores downloaded artifacts can become corrupted.

Fix: delete the problematic directories, or run mvn dependency:purge-local-repository from the command line.

5. Incompatible Java version

A plugin may not support the Java version configured in IntelliJ. This is especially common right after a new Java release.

Fix: make sure the Java version in IntelliJ matches the one in pom.xml (the maven-compiler-plugin configuration) and that both are compatible with your plugin versions.

6. IntelliJ cache or plugin issues

Sometimes the IDE itself fails to recognize the plugins.

Fix: use File > Invalidate Caches / Restart..., and keep IntelliJ's Maven plugin up to date under File > Settings > Plugins.

Common Maven plugins and what they do

PluginPurpose
maven-compiler-pluginCompiles Java sources.
maven-surefire-pluginRuns tests using JUnit/TestNG.
maven-war-pluginBuilds WAR packages for web applications.
maven-jar-pluginPackages Java application into a JAR file.
maven-dependency-pluginManages dependencies, copies dependencies, unpacks archives.

For project-specific problems, the Maven documentation and community forums are the next places to look.


Course
Intermediate
27 lessons
14 hours
OOD Fundamentals

Master object-oriented design from first principles, SOLID, design patterns, and classic interview problems with hands-on coding.

View the course
Data Structures & Algorithms practice on Codemia

Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.

Practice algorithms