I\'m working on a mixed java and kotlin project by using maven.
The problem I\'m facing right now is, maven-compiler-plugin
runs before compiling kotl
The Kotlin documentation on Using Maven suggests explicitly binding the kotlin-maven-plugin
execution to the process-sources
phase. Since maven-compiler-plugin
is bound to the compile
phase, binding kotlin-maven-plugin
to the process-sources
phase makes it run first.
kotlin-maven-plugin
org.jetbrains.kotlin
${kotlin.version}
compile
process-sources
compile
test-compile
process-test-sources
test-compile