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
-
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")
}
}