Maven with generated Java sources?

I’m trying to add Kotlin to an existing project with a big maven pom.xml file. I followed the instructions here. The Maven build uses plugins like maven-jaxb2-plugin to generate Java sources. The problem is those Java classes are not available to the Kotlin code. Is there a recommendation for this situation? Should I just manually add the generated source directories to the configuration of the Kotlin plugin, like this?