Global Setting for SonarScanner for Maven


I have Sonarqube 6.7.7 installed and i have two instances for sonarqube one in Test environment and the other in Production.

I have edited the settings.xml file, located in $MAVEN_HOME/conf or ~/.m2 , to set the plugin prefix and mentioned Production SonarQube server URL.

I will also want to add SonarQube Test environment server URL to settings.xml so that the projects using test environment get the code coverage simultaneously as production sonarqube.

Kindly let me know how do i include both test and production sonarqube server url’s in settings.xml.