Hi folks. Noob here. I have an issue where a Kotli...
# build-tools
j
Hi folks. Noob here. I have an issue where a Kotlin + Java module builds succesfully in IntelliJ IDEA but fails when I run
mvn clean install
from the command line (and JitPack). More details in this thread any help would be appreciated.
The module structure is as follows:
Copy code
├── README.md
├── database.iml
├── pom.xml
├── src
│   └── main
│       └── java
│           └── com
│               └── amsarmada
│                   └── database
│                       ├── models
│                       └── utility
The build error is:
Copy code
[ERROR] /home/jitpack/build/lib/kotlin/database/src/main/java/com/amsarmada/database/models/public_/tables/ProblemSolutionTag.java:[11,38] package com.amsarmada.database.utility does not exist
You can see the compiler is trying to build
com.amsarmada.database.models
which imports from the
utility
module and fails.
database.utility
contains kotlin files while
database.models
is java (generated jooq models)
Any thoughts welcome.
k
why you have kotlin code under java folder?
j
@kqr good question
That link is super helpful thanks
I think I may have also fixed it via  https://stackoverflow.com/a/29468952  I believe by assigning the kotlin maven plugin a build phase that presumably precedes the compile phase of the java
@kqr thank you for the response I think those examples would have gotten me to the same place 🙇
k
👍