Kotlin Maven dependency not being loaded in Kotlin Project
已回答
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
请先登录再写评论。
May you share a sample Kotlin project zipped?