Skip to content
Advertisement

Plugin with id ‘maven’ not found

Plugin with id ‘maven’ not found.

I got this error in IDEA that uses with 7.1, that is strange as maven is built-in plugin, and should be distributed with gradle.

subprojects {
    apply plugin: 'java'
    apply plugin: 'java-library'
    apply plugin: 'maven'

When running Gradle 6.3, it seems there is no such error.

Advertisement

Answer

In Gradle 7.x,

The maven plugin has been removed. You should use the maven-publish plugin instead.

Reference: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html#removal_of_the_legacy_maven_plugin

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement