Maven - parent pom and modules does not compliles


I had project on Java (Spring Boot) that consists from few modules:

    mod2-pom (depends on mod1)
    mod3-pom (depends on mod1 and mod2)

After I rewrite modules to Kotlin I can’t do maven install for parent-pom and I can compile only pom1. For modules that depends on another module I see Errors like: Unresolved reference: mod1


I recreate project with clean poms. Change build scripts to default.
mvn package and mvn install can make packages only after mvn compile without this command same errors.

Looks like without mvn compile no target/classes folder in which compiler search for classes.