Hi Sonar team,
I’m trying to set/update the project name and key from command line - it always picking up the artifact Id from pom.xml . As there are 100’s of pom.xml - i dont want to update the pom.xml files instead want to override the project names from command line.
This is the sonarqube version : 4.2 ( i know this is pretty old version - but my company still using it).
mvn -e --settings settings.xml sonar:sonar -Dsonar.host.url=xxx -Dmaven.test.skip=true -Dmaven.test.failure.ignore=true -Dsonar.jdbc.url=xxxx -Dsonar.jdbc.username=xxx -Dsonar.jdbc.password=xxx -Dsonar.projectName=demo-project -Dsonar.projectKey=demo-project
When I followed the same targeting to sonar version 7.9.1 0 - able to update the project name and key successfully.
Please guide me on how to update the project name in older sonarqube versions from command line.
Note:- overriding the artefactid from mvn command line also not helped.
thanks