title: Update specific properties in sonar-project.properties file from Maven pom.xml?
body: <p>I have a Spring Boot application that is making use of Maven as the build and dependency management tool. Maven version is 3.5.0.</p>
  
  <p>SonarQube is being used to conduct static code analysis. Developers use the <a href="https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner" rel="nofollow noreferrer">SonarQube scanner</a> on their machine to scan the project prior to committing to Git. Jenkins is also running automated analysis using the Sonar Scanner for Jenkins. The SonarQube scanner expects a file named <code>sonar-project.properties</code> located at the root of the project. Both use cases mentioned above use the same <code>sonar-project.properties</code> file.</p>
  
  <p>That being said, I would like to have some properties from in <code>sonar-project.properties</code> populated by Maven during the build, so we don't have to change them in two places all the time.</p>
  
  <p>Some examples are: </p>
  
  <ul>
  <li><code>sonar.projectVersion</code> (leveraging native version property in pom.xml)</li>
  <li><code>sonar.java.source</code> (leveraging a property I have in pom.xml)</li>
  <li><code>sonar.java.target</code> (leveraging a property I have in pom.xml)</li>
  </ul>
  
  <p>Is it feasible? I am just starting to use Maven (coming from Ant) and I was able to do this in Ant quite easily.</p>
  
  <p>Thank you</p>