首页 > 其他分享 >Plugin with id 'maven' not found

Plugin with id 'maven' not found

时间:2022-08-25 22:13:22浏览次数:186  
标签:插件 plugin Plugin publish maven found id

引入maven插件出问题了,总是报错找不到maven插件。

Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id ‘maven’ not found.

原因分析:

这是关于该问题的讨论文章。就是说Gradle 7.版本将maven插件移除了,见官方说明

Removal of the legacy maven plugin

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

Please refer to the documentation of the Maven Publish plugin for more details.

 

需要使用maven publish插件替代。

 

解决方案:

 

使用maven publish插件即可,用法可以看maven-publish官方文档

 

标签:插件,plugin,Plugin,publish,maven,found,id
From: https://www.cnblogs.com/xupeixuan/p/16625904.html

相关文章