【发布时间】:2017-02-27 22:10:50
【问题描述】:
我有一个 maven (DropWizard) java 项目。我真的很想添加一些 Kotlin 类,但似乎无法这样做。在我的真实项目中,我添加了像 https://kotlinlang.org/docs/reference/using-maven.html#compiling-kotlin-and-java-sources 这样的 maven 配置,但是“普通”java 代码看不到我的 Kotlin 类。既不是 Maven 也不是 Eclipse。
所以我尝试了混合源示例https://github.com/JetBrains/kotlin-examples/tree/master/maven/mixed-code-hello-world。这在 Maven 中有效,但在 Eclipse 中仍然无效。
我在这里错过了什么?
【问题讨论】: