title: How to run sonar-runner with module's baseDir set to root project dir
body: <p>I have the following project structure:  </p>
  
  <ul>
  <li>module1</li>
  <li>module2<br>
  <ul>
  <li>module2.1</li>
  <li>module2.2</li>
  <li>module2.3</li>
  </ul></li>
  </ul>
  
  <p>And have sonar-project.properties defined as:</p>
  
  <pre><code>sonar.projectKey=example
  sonar.projectName=project
  sonar.projectVersion=1.0
  sonar.language=xml
  sonar.sources=.
  sonar.sourceEncoding=UTF-8
  sonar.forceAnalysis=true
  sonar.projectBaseDir=.
  
  sonar.modules=module2, module1, xml
  
  xml.sonar.projectBaseDir=/
  
  module1.sonar.language=js
  module1.sonar.exclusions=lib/**
  
  module2.sonar.language=java
  module2.sonar.modules=module2.1,module2.2,module2.3
  
  module2.1.sonar.sources=/src/main/java/
  module2.1.sonar.binaries=/target/classes
  
  module2.2.sonar.sources=/src/main/java/
  module2.2.sonar.binaries=/target/classes
  
  module2.3.sonar.sources=/src/main/java/
  module2.3.sonar.binaries=/target/classes
  </code></pre>
  
  <p>I want to analyse module1 using js profile, module2.1,2.2,2.3 using java profile, and all of the xml files, which could be in the project. The current solution gives me <code>Java heap space</code> because <code>xml.sonar.projectBaseDir</code> is set to <code>/</code> (tried also with <code>.</code> and <code>../root</code>, for all these result is the same).  </p>
  
  <p>Could, please, somebody help me and tell how to analyse all the project dirs using xml profile.</p>
  
  <p>Thanks in advance!</p>
  
  <p>p.s. creating two more modules to analyse module1 and module2 folders doesn't fit me, because I have .xml files in the root folder as well. </p>