Is it possible to tell Sonar the project name from the command line?

徘徊边缘 提交于 2019-12-05 17:43:01

You're close, sonar.projectName is what you're looking for. Have a look at this documented list of Analysis Parameters.

Note that some SonarQube Scanners have specific behaviours, for example:

  • the scanner for Maven will in any case take values from the project definition itself (e.g. sonar.projectName is the project's <name> attribute)

  • the scanner for Gradle defaults to project.name

But when using the standard Scanner (sonar-runner) it's indeed a good idea to keep things under control by explicitly setting sonar.projectName.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!