Hello,
I have started to play with Jmix2 and I like it a lot, but, I can’t deploy the application using Jmix documentation: https://docs.jmix.io/jmix/deployment/basic.html
I’m using IntelliJ Build #IU-232.8660.185, built on July 26, 2023
and Jmix 2.0.1-232 plugin.
- Create Jmix project, connect to a database, run with IDE OK
- In Jmix Studio, open the Gradle tool window and double-click Tasks → build → bootJar OK
- Copy the jar to a Linux server with installed database and JDK, java -jar ERROR
Caused by: java.lang.IllegalStateException: Running project in development mode with no access to folder 'C:\....workspace\jmix2test2'.
Indeed, looking at META-INF/VAADIN/config/flow-build-info.json inside the jar, I can see the references to the filesystem that do not exist.
I’m also aware of
vaadin.productionMode=true
and I presume it needs to be set somewhere, but I just can’t make it work.
I have tried adding it to the application.properties, and also editing build.gradle as described here https://vaadin.com/docs/latest/guide/start/gradle#production but can’t make it work.
Please advise.
Kind regards.
Mladen