Kotlin Maven dependency not being loaded in Kotlin Project

Answered

I am experiencing some strange behavior when working with maven 3, the latest version of IntelliJ IDEA, java 8 and kotlin 1.5:

  • I have a Kotlin jar to use as a dependency in my local file system
  • 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
  • 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, but strangely enough it appears under "external libraries", I just can't resolve any imports to dependency classes in my project.

This is the POM I am using: https://pastebin.com/bAFkaYDE

 

0
1 comment

May you share a sample Kotlin project zipped? 

0

Please sign in to leave a comment.