`MavenId` not found in the bundled Maven plugin with IntelliJ Platform 2026.1 dependency

I have an IDEA plugin that uses the bundled Maven Plugin (org.jetbrains.idea.maven).
While upgrading my plugin to be compatible with 2026.1, the build started failing due to missing internal dependencies of the bundled Maven Plugin.

The following errors are reported by the Java compiler:

error: cannot access MavenId
var moduleMavenProject = man.findProject(module);
                            ^
class file for org.jetbrains.idea.maven.model.MavenId not found

error: cannot access MavenCoordinate
var parentMavenProject = man.findProject(parentId);
                              ^
class file for org.jetbrains.idea.maven.model.MavenCoordinate not found

The method call in error is org.jetbrains.idea.maven.project.MavenProject#findProject.

The reason is clear: org.jetbrains.idea.maven.model.MavenId and some other classes are absent from the classpath.

I traced the origin of MavenId in 2025.3 and found it to be the bundled plugin org.jetbrains.idea.reposearch.
It seems that this bundled plugin is included implicitly, as I did not have it specified in my build.gradle.kts.

Importantly, in 2026.1, org.jetbrains.idea.reposearch is not included implicitly.
Adding it to my build.gradle.kts solves the problem – MavenId an other classes are added to the classpath.

Clearly, the core issue is that the bundled plugin org.jetbrains.idea.reposearch is not included as an implicit dependency when using IntelliJ Platform 2026.1, as it had been with 2025.3.

Steps to reproduce

  1. Upgrade the plugin’s dependency on the IntelliJ Platform to 2026.1.

    // build.gradle.kts
    
    dependencies{
        intellijPlatform {
            intellijIdea("2026.1")
            bundledPlugin("com.intellij.java")
            bundledPlugin("org.jetbrains.idea.maven")
       }
     }
    

Expected result: The project compiles successfully.

Actual result: MavenId and other related classes cannot be resolved during compilation due to being absent from the classpath.

Workaround

Add the bundled plugin org.jetbrains.idea.reposearch dependency explicitly.

// build.gradle.kts

dependencies{
    intellijPlatform {
        intellijIdea("2026.1")
        bundledPlugin("com.intellij.java")
        bundledPlugin("org.jetbrains.idea.maven")
        bundledPlugin("org.jetbrains.idea.reposearch")
   }
}

Hi,
your workaround is correct. This is an incorrect packaging of the Maven plugin in 2026.1.

Please track IDEA-387180 for further updates.

Additionally, this issue is reported in the IntelliJ Platform Gradle Plugin as well.

1 Like