title: How to add a project to build path in IntelliJ Idea
body: <p>I've recently converted over to IntelliJ Idea 13, previously in eclipse I was able to add a project to another project's build path. I'm not able to accomplish this in IntelliJ. </p>
  
  <p>How can I add project1 to project2's build path so that I can use it as a dependency. I don't want to make that project a JAR because I'm still developing it. </p>
  
  <p>Following this similar previous question:
  <a href="https://stackoverflow.com/questions/28865313/intellij-add-project-dependency-like-in-eclipse">Intellij - Add project dependency like in Eclipse</a></p>
  
  <p>I was not able to successfully achieve my goal.</p>
  
  <p>In File > Project Structure > Modules</p>
  
  <p>I see the project I'd like to add to my build path (DataProvider) but it's highlighted red, and the bottom warning text states "Invalid item 'DataProvider' in dependencies list'</p>
  
  <p><a href="https://i.stack.imgur.com/EYocW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EYocW.png" alt="enter image description here"></a></p>
  
  <p>Any help or assistance would be much appreciated. </p>
  
  <p><strong>Edit:</strong></p>
  
  <p><strong>Solution</strong> (Thanks @leeor)</p>
  
  <p>Import project as a module</p>
  
  <p>File > Import Module > (Select Project to be imported)</p>
  
  <p>This will add that project to the project view pane on the left side of the screen. </p>
  
  <p>Then go to your current project</p>
  
  <p>File > Project Structure > Module > (Select your current project) </p>
  
  <p>Under Dependencies </p>
  
  <p>Check mark your project (now a module) you want to import and then click apply and then OK. </p>
  
  <p>Done!</p>
  
  <p>Using IntelliJ Idea 13.1.6 on Mac</p>