Affects Version/s: 2.7
Fix Version/s: None
I am creatin a request for improvement as per the mailing list. The description follows.
I just looked at a way to rename a project in Sonar and found the following
SONAR-1725 closed issue.
I have got a use case for it:
We have a project (let's name it "foo" with version trunk) with a long Sonar history already which gives the project "foo" in Sonar UI.
Now, I'd like to rename the "foo" project into "foo trunk" in Sonar UI without losing the history. If I use -Dsonar.branch=trunk Sonar will see it as a brand new project which is not what I want.
Do you know if there is a way to do this?
Freddy Mallet answered this:
"Indeed there isn't currently any way to cover this use case. Feel free to create a JIRA ticket in order to make it possible with the Sonar Maven plugin to override the default Maven project name with the 'sonar.projectName' property."
I think also that providing a way to rename the project in the Sonar UI before renaming the project in the pom.xml could be a runner. I leave it to you to decide what works best.