开发者社区> 问答> 正文

工程mvn后导入eclipse报错,Plugin execution not covered by

git clone 工程 mvn license:format mvn clean install -Dmaven.test.skip=true 然后导入到eclipse

我搜了好久,没有解决,可以帮忙看下什么问题么,谢谢 下面是详细报错信息 Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.6:resources (execution: default-resources, phase: process-resources) pom.xml /druid line 8 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.6:testResources (execution: default-testResources, phase: process-test-resources) pom.xml /druid line 8 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:buildnumber-maven-plugin:1.1:create (execution: default, phase: validate) pom.xml /druid line 215 Maven Project Build Lifecycle Mapping Problem

看意思像是插件的声明周期没有配置么?

原提问者GitHub用户afei199002

展开
收起
山海行 2023-07-05 20:40:30 52 0
2 条回答
写回答
取消 提交回答
  • 北京阿里云ACE会长

    这个错误信息是由于在Eclipse中没有正确配置Maven构建生命周期映射(Lifecycle Mapping)导致的。

    Eclipse中的Maven插件默认只会处理预定义的一些生命周期阶段,如果在项目的pom.xml文件中使用了自定义的插件或生命周期阶段,可能会发生这种错误。在这种情况下,需要在Eclipse中手动配置Maven构建生命周期映射,以便Eclipse能够正确处理项目的构建过程。

    2023-07-30 13:39:01
    赞同 展开评论 打赏
  • 用idea试试

    原回答者GitHub用户wenshao

    2023-07-06 11:53:29
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像