Home > other >  Vaadin 23 issue with production mode using spring boot with gradle task bootJar
Vaadin 23 issue with production mode using spring boot with gradle task bootJar

Time:05-21

I'm trying to create an executable jar file. For this project I am using gradle. I am building executable jar file using gradle task "bootJar". Unfortunately after starting my jar file like this: java -jar -Dvaadin.productionMode=true /Users/fluento/IdeaProjects/respinewsbackend/build/libs/respinews.jar

or:

java -jar /Users/fluento/IdeaProjects/respinewsbackend/build/libs/respinews.jar

this error occurs in console:

Caused by: java.lang.IllegalStateException: Running project in development mode with no access to folder '/home/fluento/StudioProjects/respinewsbackend'. Build project in production mode instead, see https://vaadin.com/docs/latest/flow/production/overview

As stated below I have 'spring.profiles.active=prod' in my application.properties.file.

Please tell me what is wrong here.

  • Related