我正在为 Scala 项目运行 Teamcity 的目标,因为
org.jacoco:jacoco-maven-plugin:prepare-agent -U sonar:sonar
我的 pom.xml 文件如下所示:
<sonar-maven-plugin.version>2.0</sonar-maven-plugin.version>
<!-- Sonar -->
<jacoco.version>0.7.9</jacoco.version>
<sonar.projectName>ds-rfds</sonar.projectName>
<sonar.projectDescription>ds-rfds</sonar.projectDescription>
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
<sonar.scala.coverage.reportPaths>${project.basedir}/ds-rfds/target</sonar.scala.coverage.reportPaths>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.language>scala</sonar.language>
<junit.version>4.11</junit.version>
我无法得到报告,它给出的错误如下:
Sensor Scoverage sensor for Scala coverage [sonarscala]
18:34:58
[INFO] Importing coverage from /mrit_cm3/apps/teamcity/7.1.3/buildagent1/work/84f58bcce55c6907/ds-rfds/target
18:34:58
[ERROR] File '/mrit_cm3/apps/teamcity/7.1.3/buildagent1/work/84f58bcce55c6907/ds-rfds/target' can't be read. java.io.FileNotFoundException: /mrit_cm3/apps/teamcity/7.1.3/buildagent1/work/84f58bcce55c6907/ds-rfds/target (No such file or directory)
18:34:58
java.io.FileNotFoundException: /mrit_cm3/apps/teamcity/7.1.3/buildagent1/work/84f58bcce55c6907/ds-rfds/target (No such file or directory)
我应该如何解决这个问题?我正在使用 SonarQube 企业版版本 7.9.1