https://kotlinlang.org logo
#build-tools
Title
# build-tools
d

Dmytro Serdiuk

02/26/2024, 12:34 AM
Hello! I saw that to run kotlin compiler before java using maven we need to add:
Copy code
<executions>
<!-- Replacing default-compile as it is treated specially by maven -->
<execution> <id>default-compile</id> <phase>none</phase>
</execution>
<!-- Replacing default-testCompile as it is treated specially by maven --> <execution>
<id>default-testCompile</id>
<phase>none</phase>
I know that default-goal is added as an ID by default, but why “default-compile” is called first even if the plugin defined the second inn the pom file? Thanks!