diff --git a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java index df5492b6cdf..a6e87552f4b 100644 --- a/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java +++ b/jetty-jspc-maven-plugin/src/main/java/org/eclipse/jetty/jspc/plugin/JspcMojo.java @@ -439,6 +439,9 @@ public class JspcMojo extends AbstractMojo } } + if (atEOF && !atInsertPoint) + throw new IllegalStateException("web.xml does not contain insertionMarker "+insertionMarker); + //put in a context init-param to flag that the contents have been precompiled mergedWebXmlWriter.println(""+PRECOMPILED_FLAG+"true");