开发者社区> 问答> 正文

sonar-runner启动问题??报错

linux下启动sonar-runner报错,ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: You must define the following mandatory properties for 'Unknown': sonar.projectKey, sonar.projectName, sonar.projectVersion, sonar.sources
ERROR: 
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

求大神帮忙

展开
收起
爱吃鱼的程序员 2020-06-08 20:09:41 586 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    #Requiredmetadatasonar.projectKey=java-sonar-runner-simplesonar.projectName=SimpleJavaprojectanalyzedwiththeSonarQubeRunnersonar.projectVersion=1.0#Comma-separatedpathstodirectorieswithsources(required)sonar.sources=src#Languagesonar.language=java#Encodingofthesourcefilessonar.sourceEncoding=UTF-8
    这个问题解决了吗?我也遇到了,求教

    我也遇到过这个问题,结果文件编码改成ANSIasUTF-8就好了

    2020-06-08 20:09:56
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载