Jenkins 声纳:在Sonar.sources中使用星号

Jenkins 声纳:在Sonar.sources中使用星号,jenkins,sonarqube,sonar-runner,Jenkins,Sonarqube,Sonar Runner,我已经成功地建立了声纳和一些较小的项目。 我们的设置是Jenkins主/从系统和每台机器上的声纳转轮安装。现在我不得不把一个更大的项目整合到声纳上,遇到了问题。 项目的目录结构如下所示: basedir -build -source -com.stuff* -src ->(contains sourcecode and should be scanned) -lib -com.otherstuff* -src ->(contains sourceco

我已经成功地建立了声纳和一些较小的项目。 我们的设置是Jenkins主/从系统和每台机器上的声纳转轮安装。现在我不得不把一个更大的项目整合到声纳上,遇到了问题。 项目的目录结构如下所示:

basedir
 -build
 -source
  -com.stuff* 
   -src ->(contains sourcecode and should be scanned)
   -lib
  -com.otherstuff* 
   -src ->(contains sourcecode and should be scanned)
   -lib
  -projectname* (this has to be excluded)
  -projectnameUNitTests (this has the unit-tests in it)
  -projectnameEJB/src (this one should be included)
如何正确设置此项?当我设定 sonar.SOURES=source/**/src Sonar无法解析目录。。。 sonar.Exclutions=项目名称* 看起来很好用。。。我该怎么办? 有很多包可以列出它们:/
另外:并非所有目录都包含src子目录

您可以使用“sonar.sources”属性指示多个源目录,并用逗号分隔:sources=../src1/,../src2/

如果您绝对想使用**,请发布您的属性文件和日志文件。可能存在与其他属性(如sonar.projectbasedir)不一致的内容

问候