kapt generated code not available during compilation phase
The issue was that the kotlin-maven-plugin
was defined in a parent pom, without the kapt goal, and then again in the module's own pom, with kapt.
This resulted in the compile task being run before the kapt task, even though the module's pom specified the order of kapt
before compile
.
Removing the parent pom entry resolved the issue.