运行声纳分析时排除父项依赖项

问题描述

我正在尝试在Nexus Repository插件上使用sonarQube。

在创建一个简单的maven项目并调用时

sonar:sonar \
  -Dsonar.scm.provider=git \
  -Dsonar.projectKey=de.zeb:sonartest \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=6cb308c50e4fc2af070777e44323061b1ed8c311

构建成功,我可以在创建的docker容器上看到声纳结果。

但是在添加所需的父pom以创建nexus-plugins时:(https://help.sonatype.com/repomanager3/bundle-development/bundle-development-overview

<parent>
    <groupId>org.sonatype.nexus.plugins</groupId>
    <artifactId>nexus-plugins</artifactId>
    <version>3.24.0-02</version>
    <relativePath />
</parent>

构建失败并返回以下错误消息:

不再支持'sonar.branch'参数。你应该停下来 使用它。分支分析在Developer Edition及更高版本中可用。

这似乎与git无关,因为我没有使用分支,删除git也没有任何改变。

使用带有完整调试日志记录的命令时的输出:dump

那么我如何告诉声纳排除父母?

我有点不知所措。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...