28 Star 178 Fork 124

dray/jacoco

 / 详情

IDE 导入工程后一直报 Cannot resolve plugin org.jacoco:jacoco-maven-plugin:0.8.7-SNAPSHOT

待办的
创建于  
2021-08-19 16:26

问题一:IDE 导入工程后一直报 Cannot resolve plugin org.jacoco:jacoco-maven-plugin:0.8.7-SNAPSHOT

问题二:执行 mvn spotless:apply
报错如下:
[ERROR] No plugin found for prefix 'spotless' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Administrator.m2\repository), central (htt
ps://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

评论 (3)

xwc010 创建了任务 4年前
xwc010 关联仓库设置为dray/jacoco 4年前
xwc010 修改了描述 4年前
展开全部操作日志
dray-Dray dray 拥有者 4年前

关于mvn spotless:apply命令报错的问题,我这里说明下
输入图片说明
大家可以看下,这个命令报错的模块是root,而root就是一个pom文件,没有任何class文件,其他模块都是有,而root里面是没有的,所以会报错,但是不会影响正常功能,大家可以忽略;
关于确少:jacoco-maven-plugin:0.8.7-SNAPSHOT;是由于你本地没有构建好这个包,找不到依赖,问题可能出现在你在构建这个包的时候缺少依赖,请检查下自己的maven配置,实在构建不出包,可以直接使用我构建好的release包
输入图片说明

使用这一句就可以了mvn com.diffplug.spotless:spotless-maven-plugin:apply,参见https://github.com/camunda/zeebe/issues/9117,具体我也不知道为啥

确实可以运行了,非常感谢

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(4)
dray-Dray 小丁猫-njuxdm 万秦乐-wanqinle 330698 xwc010 1578920222
1
https://gitee.com/Dray/jacoco.git
git@gitee.com:Dray/jacoco.git
Dray
jacoco
jacoco

搜索帮助