I already changed the key, but the displayed Name stayed the same. How can I change that one?
Asked
Active
Viewed 5,167 times
4
-
Possible duplicate of [How to rename a project in SonarQube 5.1?](https://stackoverflow.com/questions/30511849/how-to-rename-a-project-in-sonarqube-5-1) – Peska Mar 27 '18 at 13:16
-
It's the same question, I just have hope that there is a different answer for SonarQube 7.0 in 2018 than for SonarQube 5.1 in 2015. – Anna Ira Hurnaus Mar 27 '18 at 13:58
1 Answers
6
If you have a sonar-project.properties
file for your project, the name is specified thanks to the sonar.projectName=...
property in that file.
If you are on a Maven project, this value comes from the the project name provided inside the root POM file.
Otherwise, you can set the name on the command line when running the analysis, usually with the -Dsonar.projectName=...
argument.

Fabrice - SonarSource Team
- 26,535
- 3
- 62
- 58
-
Yes, adding `-Dsonar.projectName=...` changes project name whenever you add it (tested on CE) – vladkras Mar 25 '19 at 16:19