-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Production: Deployment to Heroku failed #126
Comments
Which version are you using? How do you call the heroku command? I did it yesterday multiple times. |
Jhipster v 6.10.1 |
Can you try mhipster heroku please? |
I tried using the
|
I will try to reproduce it. So you have some more logs why it crashed? |
-----> Java app detected |
2020-07-22T18:09:20.636926+00:00 app[web.1]: no main manifest attribute, in target/original-revertback-0.0.1-SNAPSHOT.jar |
I see its |
Yes, I see. In the main generator we have <requireJavaVersion>
<message>You are running an incompatible version of Java. JHipster supports JDK 8 to 14.</message>
<version>[1.8,15)</version>
</requireJavaVersion> in micronaut only
And the heroku sub gen does not overwrite the jdk selection. I guess micronaut supports jdk 14 too, so I would suggest to adapt the pom accordingly. @oopsaleem Can you try changing the pom with |
I will open a new issue for that. |
HI @atomfrede , No I didn't select it, as mentioned i went with the default choices. |
That is strange. The default for the heroku java version should still be 11. |
I changed the |
But it now builds, so the build failure is gone. Can you provide an example application? Does |
Actually, build failure was gone when i used below is the you can find the example app here |
Thanks. |
I think I can see the issue, but I have no idea why its happening. As a workaround you can try setting |
🤦 I think we have the same problem with the main generator as soon as the application name comes after |
Comment out following. You are running an incompatible version of Java. JHipster supports JDK 8 to 15. [1.8,16)It worked for me ;-) |
Deployment to Heroku failed
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar (480 kB at 3.9 MB/s) [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: You are running an incompatible version of Java. JHipster supports JDK 8 to 12. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:05 min [INFO] Finished at: 2020-07-22T14:56:01Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) on project handled: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException ! ERROR: Failed to build app with Maven We're sorry this build is failing! If you can't find the issue in application code, please submit a ticket so we can help: https://help.heroku.com/ ! Push rejected, failed to compile Java app. ! Push failed
Reproduce the error
create app with default options, database postgresql.
The text was updated successfully, but these errors were encountered: