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.
I start" 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:
mvn jbake:watch
and start adding/editing content, looking at the output regularly. Whe I make some changes, write "fooNote: "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.