title: SBT multi project in Intellij
body: <p>Im trying to use a single Intellij IDEA window with multi projects (that are not related) imported. 
  The problem that I'm facing is when I'm executing a <code>sbt task</code>, the task is not loaded in the right project directory.</p>
  
  <p>This is what I did (all in the Intellij Idea window):</p>
  
  <ol>
  <li>Opened a <code>root</code> empty sbt project.</li>
  <li>In the sbt toolbar, I clicked the <code>+</code> and added 2 projects <code>job-service</code> and <code>user-service</code> (each was its own <code>build.sbt</code> file)</li>
  <li>Pressed <code>Reimport All sbt projects</code> just for fun</li>
  <li>Executed <code>compile</code> (from the sbt toolbar) for the <code>user-service</code> </li>
  </ol>
  
  <p>The sbt shell opened, and started compiling the empty root project:</p>
  
  <pre><code>[info] Set current project to root (in build file:/Users/dima/git/root/)
  [IJ]sbt:root&gt; compile
  </code></pre>
  
  <p>what I've expected is </p>
  
  <pre><code>[info] Set current project to user-service (in build file:/Users/dima/git/user-service/)
  </code></pre>
  
  <p><em>And of course, the same for the second project <code>job-service</code></em></p>
  
  <p><strong>Versions:</strong></p>
  
  <pre><code>Idea version: Version: 2019.2 Build: 192.5728.98
  SBT version = 0.13.18
  </code></pre>
  
  <p>I know the way to use a single <code>build.sbt</code> file with multi projects. But those projects are not related. each project has its own <code>build.sbt</code> file. 
  I just want to use a single Idea window with multiple projects. and that the sbt toolbar could execute the tasks to the right project </p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>This is the process to recreate what I'm facing:</p>
  
  <ol>
  <li><a href="https://i.stack.imgur.com/JkNZC.png" rel="nofollow noreferrer">open project named root2</a></li>
  <li><a href="https://i.stack.imgur.com/uE6dN.png" rel="nofollow noreferrer">Import another sbt project</a> called <code>learner</code></li>
  <li><a href="https://i.stack.imgur.com/GU0XI.png" rel="nofollow noreferrer">Compile the learner project</a> <strong>from the sbt toolbar!</strong></li>
  <li>The Problem: <a href="https://i.stack.imgur.com/2ft2d.png" rel="nofollow noreferrer">sbt shell sets current project to root2</a></li>
  </ol>
  
  <p>the same for <code>publishLocal</code> task. it sets the current project to root2 and publishes a root2 artifact. 
  what should have been, is that the sbt would set the current project to <code>learner</code> </p>