自定义一个插件,继承AbstractMojo,实现execute方法,引入该自定义插件,执行mvn install,报错
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default
-descriptor) on project maven-project: Error extracting plugin descriptor: 'No mojo definitions wer
e found for plugin: com.gupao:maven-project.' -> [Help 1]
因为还需要加一个maven-plugin-plugin来生成descriptor
org.apache.maven.plugins
maven-plugin-plugin
3.0
true
|
再次运行,就不会报错了