mac在用osgi开发时报Multiple annotations found at this line: - Plugin execution not covered by lifecycle c

本文解决Maven项目在Eclipse中显示错误警告的问题,通过调整Maven插件配置,将错误级别改为警告,确保项目可以正常编译运行,不影响本地环境。

Multiple annotations found at this line:
	- Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:findbugs-maven-plugin:3.0.3:check (execution: analyze-compile, phase: 
	 compile)
	- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (execution: validate, phase: 
	 validate)
	- maven-remote-resources-plugin (goal "process") is ignored by m2e.

在本地已经全部编译好的maven环境在eclipse中全线子工程飘红,工程也可以正常编译,在网上搜了一些解决方法大多需要

在lifecycle-mapping-metadata.xml加配置,由于各个工程太多,觉得头大。但又不愿意看到工作空间全线飘红。
 


解决步骤如下:
 1.我的想法很简单,既然不影响使用,我直接无视这个错不就行了?
    将Error级别改成Warning级别不就可以了吗?
 Eclipse 一> Preferences 一> Maven 一> Errors/warnings 
 



将Error级别改成warnings级别也不失为一种方法,前提是不影响你本地的环境。大家谨慎借鉴。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值