title: IntelliJ IDEA - Kotlin Maven Dependency Not Loaded in Kotlin Project
body: <p>I am experiencing some strange behavior when working with maven 3, the latest version of IntelliJ IDEA, java 8 and kotlin 1.5:</p>
  <ul>
  <li>I have a Kotlin jar to use as a dependency in my local file system.</li>
  <li>When creating a new Java project, adding maven framework and adding the dependency (with system scope) to my POM, it loads correctly into my IntelliJ classpath and I can use it in my code.</li>
  <li>When creating a Kotlin project, adding maven framework and adding the dependency with an identical POM to the java project, IntelliJ does not load the dependency. Strangely, it appears under &quot;external libraries&quot;, I just can't resolve any imports to dependency classes in my project.</li>
  <li><code>mvn dependency:tree</code> for both projects prints my kotlin dependency, meaning that maven has found my dependency but IntelliJ hasn't.</li>
  </ul>
  <p>This is the POM I am using: <a href="https://pastebin.com/bAFkaYDE" rel="nofollow noreferrer">https://pastebin.com/bAFkaYDE</a></p>
  <p>How I can get the kotlin IntelliJ IDEA project to notice my maven dependency kotlin jar?</p>
  <p><strong>UPDATE:</strong> I have tried this same test but with gradle java/kotlin projects, with the exact same results. This is an issue with IntelliJ IDEA not picking up kotlin based dependency jars specifically from both maven and gradle projects.</p>