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 ac3e45f3f59..3e524b05be7 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 @@ -82,6 +82,21 @@ public class JspcMojo extends AbstractMojo public static final String PRECOMPILED_FLAG = "org.eclipse.jetty.jsp.precompiled"; + /** + * JettyJspC + * + * Add some extra setters to standard JspC class to help configure it + * for running in maven. + */ + public static class JettyJspC extends JspC + { + public void setClassLoader (ClassLoader loader) + { + this.loader = loader; + } + } + + /** * Whether or not to include dependencies on the plugin's classpath with <scope>provided</scope> * Use WITH CAUTION as you may wind up with duplicate jars/classes. @@ -219,7 +234,7 @@ public class JspcMojo extends AbstractMojo * * @parameter */ - private JspC jspc; + private JettyJspC jspc; @@ -286,19 +301,22 @@ public class JspcMojo extends AbstractMojo if (i+1