像在之前的文章中:NDepend SonarQube integration generates java.lang.NullPointerException,当试图将NDepend 6.3集成到SonarQube 6.1中时,NullPointerException是生成:java.lang.NullPointerException:属性“sonar.cs.ndepend.projectPath”必须设置为(到绝对路径)
java.lang.NullPointerException: The property "sonar.cs.ndepend.projectPath" must be set (to an absolute path)
- NDepend的规则
- NDepend的执行超时
- 路径NDepend.SonarQube.RuleRunner.exe
我已经按照these instructions:,但我找不到如何设置sonar.cs.ndepend.projectPath
。当通过命令提示符执行NDepend.SonarQube.RuleRunner.exe
时,指定.ndproj路径和报告文件位置,分析运行完美。但是,通过在VSTS中构建执行的NDepend Sonarqube插件,它会生成错误。
我也试着在SonarQube服务器的管理面板/配置页下的NDepend选项卡中为Path to NDepend.SonarQube.RuleRunner.exe
文本框指定的绝对路径之后,为项目路径和报告文件添加参数。就像通过命令提示符运行一样。但是,通过命令提示符运行时,参数不会像解析一样。他们只是被视为绝对路径的一部分。
我能看到三个键在此文件中设置:SonarQubeAnalysisConfig.xml
位于我的LFS这里: G:\SonarQube\bin\vsts-agent-win7-x64-2.109.1\_work\2\.sonarqube\conf
。每次在VSTS中开始构建时都会生成此文件。所以,我不能在那里设置sonar.cs.ndepend.projectPath
。
所以,我的问题是:我在哪里可以指定sonar.cs.ndepend.projectPath
?那么,这个价值是被拿起来使用的?
像以前的帖子? – silentsod