Add Maven Kotlin module

Answered

Hello!

When I create a Maven Kotlin project, the pom.xml dependencies and plugins were auto-generated.

Is there an easy way to add a Maven Kotlin module to the existing project? "New Module > Kotlin" adds a JetBrains build system one and "New Module > Maven" adds an empty pom.xml.

IDEA Ultimate 2020.3

0
1 comment

Hi,

You can add a new Maven module, and then as soon as you add a Kotlin class to it (needs to be placed in the sources root), a notification should appear suggesting to add Kotlin support to the module where IDEA detected Kotlin code.

When you click OK, the pom.xml of that module will be updated with the necessary dependencies.

1

Please sign in to leave a comment.