天天看点

Eclipse+Maven:Plugin execution not covered by lifecycle configuration

报错信息:

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-dependency-plugin:3.0.0:unpack (execution: default, phase: generate-resources)

有3 种解决方法:

1、在<build>和<plugins>之间加上<pluginManagement>

2、在Window -> Preferences -> Maven -> Errors/Warnings中,将“Plugin execution not covered by lifecycle configuration”对应的选项改为“Ignore”或“Warning”

3、在Window -> Preferences -> Maven -> Lifecycle Mappings中,点击“Open workspace lifecycle mappings metadata”,在其中添加有问题的plugin

参考文档

Eclipse + Maven: Plugin execution not covered by lifecycle configuration

How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds

继续阅读