Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin with id 'maven' not found

Tags:

java

gradle

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.

like image 271
Paul Verest Avatar asked Sep 08 '21 09:09

Paul Verest


Video Answer


2 Answers

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

like image 115
Gokul Nath KP Avatar answered Oct 20 '22 11:10

Gokul Nath KP


The maven plugin was removed in Gradle 7. The documentation suggests to use maven-publish plugin instead.

like image 22
Ondra K. Avatar answered Oct 20 '22 11:10

Ondra K.