Generate Application online has problem
Dado278 opened this issue ยท 4 comments
Hi all,
I generate application from
https://start.jhipster.tech/generate-application
and push it in gitHub repository.
When a try to deploy it in Heroku server I get a maven error and build fails.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project jh-sweet-home-dinner-application-2: Fatal error compiling: invalid target release: 11 -> [Help 1]
Besides, Table "JHI_USER" not found
and
package tech.jhipster.web.util does not exist (this package is different from package generate few days ago)
Few days ago all works fine (with same steps), does something has changed?
Thank you
Davide
Fatal error compiling: invalid target release: 11
It seems that you're deploying on java 8 runtime while having built for JDK 11.
@Dado278 : Thanks for posting the issue; @gmarziou is correct. Normally Heroku by default supports Java 8 (https://devcenter.heroku.com/articles/java-support#supported-java-versions). So you need to set it to Java 11 as specified in that section. If you did use the Heroku Sub-generator (which I assume you didn't?) we set this property automatically.
Let us know how it goes once you add the property. I am closing this issue for now as it doesn't seem like a bug to me. But please feel free to re-open and comment if you have any further queries on this matter. ๐
Thank you @gmarziou and @SudharakaP , now it works correctly :)
Sorry for incorrect subject, I wanted to open it as white support ;)
Have a good day ๐ฏ
Thank you @gmarziou and @SudharakaP , now it works correctly :)
Sorry for incorrect subject, I wanted to open it as white support ;)
Have a good day 100
Thanks for the confirmation. Have a good day to you too. Let us know if you have any other questions. ๐