I started using Kotlin today and came across a strange error. When I compile my Maven project on the command line (mvn clean install -DskipTests=true), it fails:
[ERROR] /Users/lerk/workspace/lolpix2.0/src/main/kotlin/org/lolpix/api/UserRepo.kt: (3, 23) Unresolved reference: entities [ERROR] /Users/lerk/workspace/lolpix2.0/src/main/kotlin/org/lolpix/api/UserRepo.kt: (11, 36) Unresolved reference: User [ERROR] /Users/lerk/workspace/lolpix2.0/src/main/kotlin/org/lolpix/api/UserRepo.kt: (12, 42) Unresolved reference: User [ERROR] /Users/lerk/workspace/lolpix2.0/src/main/kotlin/org/lolpix/api/UserRepo.kt: (13, 30) Unresolved reference: User
The first unresolved reference is the package name of the following ones. (org.lolpix.api.entities.User)
When I compile my project in IntelliJ it just works.