- Kotlin for Enterprise Applications using Java EE
- Raghavendra Rao K
- 84字
- 2025-02-27 20:51:37
Java in a Kotlin project
Let's look at an example where we add Java code to an existing Kotlin project using Maven. We previously described the steps to create a Kotlin project in the Configuring Kotlin in your project section. We have created a Maven project in Kotlin using the kotlin-archetype-jvm archetype:

We will add a Java file to it and build the project as follows:

In this section, we have learned how to intermix Kotlin and Java using Maven.