You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I start mvn jbake:watch and start adding/editing content, looking at the output regularly. Whe I make some changes, write "foo" to refresh the output, it usually continues running, for hours on end. Unless I make a stupid mistake and cause an error in on my templates (a typo in an ftl, or a NPE for a field used in an ftl). That kills the mvn jbake:watch process, which it shouldn't:
[INFO] Baking finished!
[INFO] Baked 31 items in 5450ms
[ERROR] Failed to bake 1 item(s)!
Oct 01, 2021 9:44:13 AM com.orientechnologies.common.log.OLogManager log
INFO: - shutdown storage: cache...
[INFO] Oops
org.apache.maven.plugin.MojoFailureException: Baked with 1 errors. Check output above for details!
at org.jbake.maven.GenerateMojo.reRender (GenerateMojo.java:83)
at org.jbake.maven.WatchMojo$1.run (WatchMojo.java:68)
[INFO] Ooops
org.apache.maven.plugin.MojoExecutionException: Failure when running:
at org.jbake.maven.GenerateMojo.reRender (GenerateMojo.java:88)
at org.jbake.maven.WatchMojo$1.run (WatchMojo.java:68)
Caused by: org.apache.maven.plugin.MojoFailureException: Baked with 1 errors. Check output above for details!
at org.jbake.maven.GenerateMojo.reRender (GenerateMojo.java:83)
at org.jbake.maven.WatchMojo$1.run (WatchMojo.java:68)
[INFO] Finishing
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18:46 h
[INFO] Finished at: 2021-10-01T09:44:13+02:00
[INFO] ------------------------------------------------------------------------
Note: "mvn generate-resources" should fail the build if there is such an error. That's called by CI. But mvn jbake:watch is not called by CI.
The text was updated successfully, but these errors were encountered:
Also, [ERROR] Failed to bake 1 item(s)! should mention the filesnames of the first 3 items that failed.
ge0ffrey
changed the title
Maven plugin: jbake:watch crashes the next morning
Maven plugin: jbake:watch should not exit if one of the templates have an error
Oct 1, 2021
I start
mvn jbake:watch
and start adding/editing content, looking at the output regularly. Whe I make some changes, write "foo" to refresh the output, it usually continues running, for hours on end. Unless I make a stupid mistake and cause an error in on my templates (a typo in an ftl, or a NPE for a field used in an ftl). That kills the mvn jbake:watch process, which it shouldn't:Note: "mvn generate-resources" should fail the build if there is such an error. That's called by CI. But
mvn jbake:watch
is not called by CI.The text was updated successfully, but these errors were encountered: