I have a project in our SonarQube instance. For some reason, I want to rename the project via sonar.projectName
parameter.
In the document, sonar.projectName
is describes that:
If not provided and there is already a name in the DB, it won’t be overwritten.
Analysis parameters
But I couldn’t rename the project via mvn sonar:sonar -Dsonar.projectName=newName
.
In the source code, the sonar.projectName
parameter is described that:
Optional name of the project, used only if the project does not exist yet.
sonarqube/SubmitAction.java at bcd75f36ce26a17eeea53b392215414b2ba9c000 · SonarSource/sonarqube · GitHub
Which is correct? Is it not possible to change the project name without recreating the project?
Our environment:
- SonarQube Community 9.9.0 deployed from zip
- SonarScanner for Maven (sonar-maven-plugin): 3.9.1.2184